strapless 0.2.0 → 0.3.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2cb19707bcd79eeaede833947a244d5241068862
4
+ data.tar.gz: d460efd737f02c6b190a1d5156b561e7367ef670
5
+ SHA512:
6
+ metadata.gz: d310356d0a86248cdb2fac388e34dbba77329e1609e28cd4ad64323befccc21d7a7ab96e4208bf38818ea4f40ec0bbc457a50934a2b335ed4fe2988b5e69d627
7
+ data.tar.gz: 188a627568af23ee989a5b6fb09bf38953e52edf140a65170440e10f5985e7dc6c00933d4b59d566c2d3ea07c22120a8da6329d9c2b1d7e24d9257bf27f1e8ba
data/.gitignore CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
@@ -67,6 +67,22 @@ you will need to load the tasks manually. In your Rakefile add
67
67
 
68
68
  require 'strapless/tasks'
69
69
 
70
+ Oh no! You forgot to add it to your Gemfile and you want to use it on your already running server?
71
+ --------------------------------------------------------------------------------------------------
72
+ Well that was silly wasn't it. Luckily you can get around it (though this breaks all the rules).
73
+ First install the gem on your server:
74
+
75
+ gem install strapless
76
+
77
+ Then find the path to the gem, for example:
78
+
79
+ ~/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/strapless-0.2.0/lib
80
+
81
+ Then from your Rails folder (current) run:
82
+
83
+ bundle exec rake --libdir . --libdir "/path/to/strapless/lib/folder" --require 'config/environment' --require 'strapless' --require db:bootstrap:dump[all]
84
+
85
+
70
86
  Acknowledgements
71
87
  ----------------
72
88
 
data/Rakefile CHANGED
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Strapless
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -32,7 +32,7 @@ namespace :db do
32
32
  require 'active_record/fixtures'
33
33
  data = File.join(Rails.root, 'db', 'data')
34
34
  Dir.mkdir(data) unless File.exists?(data)
35
- Dir['app/models/*'].each {|f| require f }
35
+ Dir[Rails.root.join('app/models/*')].each {|f| require f }
36
36
  args[:table] = args[:table].split(/,/) unless args[:table] == 'all'
37
37
  ActiveRecord::Base.descendants.select{|m| m.table_exists? && (args[:table] == 'all' || args[:table].include?(m.table_name))}.each do |klass|
38
38
  klass.dump_fixtures(data)
File without changes
metadata CHANGED
@@ -1,34 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: strapless
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Jeff Rafter
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2012-03-09 00:00:00 -08:00
19
- default_executable:
11
+ date: 2014-03-04 00:00:00.000000000 Z
20
12
  dependencies: []
21
-
22
- description: To create seed data based on your development database? Run the dump tasks, commit the files, and on the next machine run the laod tasks.
23
- email:
13
+ description: To create seed data based on your development database? Run the dump
14
+ tasks, commit the files, and on the next machine run the laod tasks.
15
+ email:
24
16
  - jeffrafter@gmail.com
25
17
  executables: []
26
-
27
18
  extensions: []
28
-
29
19
  extra_rdoc_files: []
30
-
31
- files:
20
+ files:
32
21
  - .gitignore
33
22
  - Gemfile
34
23
  - README.md
@@ -38,39 +27,27 @@ files:
38
27
  - lib/strapless/version.rb
39
28
  - lib/tasks/strapless.rake
40
29
  - strapless.gemspec
41
- has_rdoc: true
42
30
  homepage: http://github.com/jeffrafter/strapless
43
31
  licenses: []
44
-
32
+ metadata: {}
45
33
  post_install_message:
46
34
  rdoc_options: []
47
-
48
- require_paths:
35
+ require_paths:
49
36
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
- version: "0"
59
- required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
66
- - 0
67
- version: "0"
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - '>='
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
68
47
  requirements: []
69
-
70
48
  rubyforge_project: strapless
71
- rubygems_version: 1.3.9.2
49
+ rubygems_version: 2.0.3
72
50
  signing_key:
73
- specification_version: 3
51
+ specification_version: 4
74
52
  summary: Simple tasks for bootstrapping the data in your rails application
75
53
  test_files: []
76
-