ecm_news2 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e52bf6e16f4583feb6dd27ff7b554840dd376c65
4
- data.tar.gz: bedcd398986f43338269a89fa859f3e44e4f0429
3
+ metadata.gz: e7cc0f6385d6651d7ce359cba06eec6ee51a3ff5
4
+ data.tar.gz: 2a3bdd07b374cf67cc609041e5c39e9627d5bd3f
5
5
  SHA512:
6
- metadata.gz: 7678e1949212ab4054f7c04c5779930e88c987990f7affcbc55e84e7125838c9d0e44c4e0a4d8d187e8ed8c98d2ad84a85aff6f539f338f155046049101934ab
7
- data.tar.gz: 7341c12e4848422c83d48f1f2fadc9026f73fb455840195f3e05d70909d6b477f11d991b7ecf8d3b33627ac6d9be634e8c9a09731530c96aa39ee2e4b11b53d7
6
+ metadata.gz: 58e79379765a07a5f70c00e6a5b16d4a965566f987d73976cea13dbefb9dfeabf48fd4bc8d178141dd3f2816852f54229b60749364457b2c1cb55b751f013241
7
+ data.tar.gz: 6f449499d70437d2aa6459b1d7f1383a7328b65ddcd537f77e1e233ea03bcead840170c52a81777fd21273d53de53957ee60335daf72fa98aabc9bd574fcd84d
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
@@ -6,9 +6,15 @@ module Ecm
6
6
 
7
7
  source_root File.expand_path('../templates', __FILE__)
8
8
 
9
- def generate_intializer
9
+ def generate_initializer
10
10
  copy_file 'initializer.rb', 'config/initializers/ecm_news.rb'
11
11
  end
12
+
13
+ def generate_routes
14
+ inject_into_file 'config/routes.rb', before: "\nend" do
15
+ File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
16
+ end
17
+ end
12
18
  end
13
19
  end
14
20
  end
@@ -0,0 +1,5 @@
1
+
2
+ # ECM News Frontend Routing
3
+ localized do
4
+ Ecm::News::Routing.routes(self)
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_news2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-17 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -395,6 +395,7 @@ files:
395
395
  - lib/ecm_news2.rb
396
396
  - lib/generators/ecm/news/install/install_generator.rb
397
397
  - lib/generators/ecm/news/install/templates/initializer.rb
398
+ - lib/generators/ecm/news/install/templates/routes.source
398
399
  - lib/generators/ecm/news/locales/locales_generator.rb
399
400
  - lib/tasks/ecm_news_tasks.rake
400
401
  homepage: https://github.com/robotex82/ecm_news2