tongues 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/tongues/initializer_generator.rb +8 -7
- data/lib/tongues/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eea3097ed0b05b724a38fd33bd4fcdca36dc6c0e
|
|
4
|
+
data.tar.gz: a1ee1a445c34c2a4cd00bfb9d09536cb1e968c00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03116116f3fa5e9dcdd087a236c9c4e4555717e223d218b927d1a1d94c42ebbf8b4c9790b2376817bf802f11d967d6530f980f0c3cd3431f31155504f4e81ad2
|
|
7
|
+
data.tar.gz: 8c6c0eafa7e3a65042b76d5888a2206478b5290a1248eb028b5870586fb576bc08195de4e57a09791847d334b48a5cf996c24435e303afc376e322c87aa5a13a
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
require 'rails/generators'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
module Tongues
|
|
4
|
+
class InitializerGenerator < Rails::Generators::Base
|
|
5
|
+
source_root File.expand_path('../templates', __FILE__)
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
desc 'This generator creates an initializer for the api key.'
|
|
8
|
+
def copy_initializer_file
|
|
9
|
+
copy_file 'initializer.rb', 'config/initializers/tongues.rb'
|
|
10
|
+
end
|
|
10
11
|
end
|
|
11
|
-
end
|
|
12
|
+
end
|
data/lib/tongues/version.rb
CHANGED