settingify 0.0.2 → 0.0.3

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: 2434255ad4235e0a52d9668f1ab0b88e58cb2ecb
4
- data.tar.gz: 6b2be1e3c5a2d9fed971ff36a46e7e638c3d48e4
3
+ metadata.gz: d60134a199d33fe55c04d10031746387559577d2
4
+ data.tar.gz: c0fccd95aa5921ad05350e1f53427131eec5f17a
5
5
  SHA512:
6
- metadata.gz: 910715d6d7252ab147f78ae77154e68b19b7b3a1662162c9b59a6e671ab4b8f734d6c3414c3210414e0ce40b393747fe000498a8faab23be49a682774bc906cc
7
- data.tar.gz: 39e50023a37a292f28987846c7da59d282e7fc7826d99773ea4f8b0d6dc956a9c4435f360bb74a268488a8260fade67cca03675e92a7107580e74470dc492e34
6
+ metadata.gz: 17d4af4daf3e64d3e3f0dd0c0cc5abfe9c095213b3aade574fa968805d3c23ce3b0ab1cdd32d6b7133b6e1ad6bdd5dfbe76e3ac13c76b4a77ab779dbbc89ee26
7
+ data.tar.gz: 10fd93b652403f8a60ffafa6b14d856369928696fbddad7f7e3177dcd47320b39d39ab224ea420e04f9ef095875791e4761fe89116d5b5ec9204554a770d381f
data/Rakefile CHANGED
@@ -8,11 +8,3 @@ RSpec::Core::RakeTask.new do |t|
8
8
  t.pattern = FileList['spec/**/*_spec.rb']
9
9
  t.rspec_opts = %w(--color)
10
10
  end
11
-
12
- namespace :settingify do
13
- desc 'Syncs defined settings with DB'
14
- task sync: :environment do
15
- Settingify::DbSyncer.new.call
16
- end
17
- end
18
-
@@ -0,0 +1,10 @@
1
+ require 'settingify'
2
+ require 'rails'
3
+
4
+ module Settingify
5
+ class Railtie < Rails::Railtie
6
+ rake_tasks do
7
+ Dir[File.join(File.dirname(__FILE__),'tasks/*.rake')].each { |f| load f }
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,7 @@
1
+ namespace :settingify do
2
+ desc 'Syncs defined settings with DB'
3
+ task sync: :environment do
4
+ Settingify::DbSyncer.new.call
5
+ end
6
+ end
7
+
@@ -1,3 +1,3 @@
1
1
  module Settingify
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/settingify.rb CHANGED
@@ -4,6 +4,8 @@ require 'active_support/core_ext/module'
4
4
 
5
5
  require "settingify/version"
6
6
 
7
+ require 'settingify/railtie' if defined?(Rails)
8
+
7
9
  module Settingify
8
10
  extend ActiveSupport::Autoload
9
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: settingify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Gernyak
@@ -172,11 +172,13 @@ files:
172
172
  - lib/settingify/contract_ext.rb
173
173
  - lib/settingify/db_reader.rb
174
174
  - lib/settingify/db_syncer.rb
175
+ - lib/settingify/railtie.rb
175
176
  - lib/settingify/reader.rb
176
177
  - lib/settingify/repo.rb
177
178
  - lib/settingify/setting.rb
178
179
  - lib/settingify/setting_builder.rb
179
180
  - lib/settingify/settings_list.rb
181
+ - lib/settingify/tasks/settingify.rake
180
182
  - lib/settingify/version.rb
181
183
  - settingify.gemspec
182
184
  - spec/db/schema.rb