redis_dictionary 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,18 +23,39 @@ gem 'redis_dictionary'
23
23
 
24
24
  And then execute:
25
25
 
26
- $ bundle
27
-
26
+ ```
27
+ $ bundle
28
+ ```
28
29
  And finally execute:
29
30
 
30
- ``` ruby
31
+ ```
32
+ $ rails g redis_dictionary:install
33
+ ```
34
+
35
+ ### IMPORTANT
31
36
 
32
- rails g redis_dictionary:install
37
+ If you were installing before 5.10.2013, please remove this line:
38
+
39
+ ``` ruby
40
+ RedisDictionary::Engine.load!
33
41
  ```
34
42
 
43
+ from your ```config/initializers/redis_dictionary.rb``` to ```config/environment.rb```
44
+ (now just reinstall and everything should be fine)
45
+ Sorry for the inconvinience, and do not be affraid to write me if you need some help :)
46
+
35
47
 
36
48
  ## Thanks
37
49
 
38
50
  * [Jose Galisteo](https://github.com/ceritium) for writing [I18n_dashboard](https://github.com/fourmach/i18n_dashboard)
39
51
  * [Alberto Fernández-Capel](https://github.com/afcapel): [Setup integration tests with capybara](https://github.com/fourmach/i18n_dashboard/pull/1)
40
52
  * Great tips of [Blogit](https://github.com/KatanaCode/blogit).
53
+
54
+
55
+ ## Contributing
56
+
57
+ 1. Fork it
58
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
59
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
60
+ 4. Push to the branch (`git push origin my-new-feature`)
61
+ 5. Create new Pull Request
@@ -3,7 +3,7 @@ module RedisDictionary
3
3
  class InstallGenerator < Rails::Generators::Base
4
4
 
5
5
  source_root File.expand_path('../templates', __FILE__)
6
-
6
+
7
7
  desc "Installs Redis Dictionary and generates initializer + route"
8
8
 
9
9
  def copy_initializer
@@ -11,7 +11,11 @@ module RedisDictionary
11
11
  end
12
12
 
13
13
  def setup_routes
14
- route "mount RedisDictionary::Engine => '/translations'"
14
+ route "mount RedisDictionary::Engine => '/translations'"
15
+ end
16
+
17
+ def setup_environment
18
+ File.open('config/environment.rb', 'a') { |f| f.write("\n\n# loading the RedisDictionary engine\nRedisDictionary::Engine.load!") }
15
19
  end
16
20
  end
17
21
  end
@@ -1,6 +1,3 @@
1
- # loading the engine
2
- RedisDictionary::Engine.load!
3
-
4
1
  # initialization of redis store
5
2
  TRANSLATION_STORE = Redis.new
6
3
  begin
@@ -1,3 +1,3 @@
1
1
  module RedisDictionary
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_dictionary
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: