Commit Graph

18 Commits

Author SHA1 Message Date
Jim Ryan f228dbfdb2 Pass ActiveSupport::JSON.decode a string and not an IO when interfacing with GitHub API
In older versions (< 4.1) of ActiveSupport, this worked because
ActiveSupport used MultiJSON, which would invoke #read if it
responded to it (https://github.com/intridea/multi_json/blob/v1.8.4/lib/multi_json/adapters/json_common.rb#L9).
However, newer versions of ActiveSupport, starting in 4.1, use
ruby's standard JSON gem (ce4456fde6),
which expects a String. Reading the IO that #open returns
to us and passing the resulting String to JSON.decode ensures
compatibility with all versions of ActiveSupport.
2014-03-04 13:28:49 -05:00
Akira Matsuda c66ffd13a5 Merge pull request #279 from eitoball/issue_271
Fix for issue#271
2012-09-04 16:06:18 -07:00
Eito Katagiri 218f504294 change for github api v3 2012-09-05 01:01:17 +09:00
Akira Matsuda 296d84cfb7 add commented out `max_per_page` to the config generator output 2012-09-03 00:37:45 +09:00
Sergey Parizhskiy ae42cc1f09 added information about slim templates support 2011-12-17 16:39:10 +09:00
Akira Matsuda 3cf929f7d0 refs #57, #162 let the pagination method name (defaulted to `page`) configurable
now Kaminari can live together with associations named `page` and models having method named `page`
2011-12-17 16:33:06 +09:00
Akira Matsuda cf8a49b0c3 refs #94 add config.param_name to the generator template 2011-04-22 23:33:59 +09:00
Akira Matsuda 1557b5cc2b A generator that generates default config file 2011-04-21 16:45:08 +09:00
Akira Matsuda 12822c9ee1 generator preserves the directory structure of the loaded theme
this means, a theme can contain assets
2011-04-18 01:47:45 +09:00
Akira Matsuda e963e4bef9 No Internet No Theme! ... but no fail. 2011-02-13 06:03:15 +09:00
Akira Matsuda 0669b0f264 fetch themes from amatsuda/kaminari_themes repo 2011-02-13 03:41:01 +09:00
Akira Matsuda 94331f4641 documentation 2011-02-11 11:23:10 +09:00
Akira Matsuda 359118cc04 looks more googlish this way 2011-02-10 07:42:49 +09:00
Akira Matsuda 4f39f57068 githubish theme... 2011-02-10 07:19:10 +09:00
Akira Matsuda 269bb165e0 googlish theme... 2011-02-09 21:34:42 +09:00
Akira Matsuda 54b4e0fb67 the generator is Named now 2011-02-09 21:15:53 +09:00
Akira Matsuda 9a3c0b00f8 Haml generator 2011-02-07 11:32:27 +09:00
Akira Matsuda 84132d53b7 a generator that copies views into the app 2011-02-05 23:45:49 +09:00