binary_fixtures 0.1.0 → 0.1.1

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: 70d14c48f840ea9db58d097de0f63336440bbd61
4
- data.tar.gz: f537cbe856b65d2d11b4c105e6cf2252b1738410
3
+ metadata.gz: fa9ab41c031647b7cd0d36211fdd359a9508a7ac
4
+ data.tar.gz: 15cb0c7f055cda15d3cf981a1aea19ea1e3bf429
5
5
  SHA512:
6
- metadata.gz: 90a45687e54e96ea34eb1b3919b023eca910bce83ab095ae8c5b02f4c1f15de2af811224017996383590217c761be62aac81f89e64e94b5036c085aaf481c03d
7
- data.tar.gz: b6ba668dd1a912e78c4e9c5eeed9199cd70d4335ae04e3e43718fe804081ad5d0a730c4f0e2f2405707c07e2b4769c887c2984eca0332a344d1d8a9539aa9e84
6
+ metadata.gz: 75fcd05c3d0f0a24c6882d62b0229e4ffd1939ce53d6ea6394f5abd0fc6c610e3d9750810ea65e305476777fbf2bf2ac154302fce54ced796536d2bce0bc638d
7
+ data.tar.gz: 3d8a85141f2f550fb9824a2b71750e6790b2a0d2cd0c34f4a8cf2b880763f760236af0effaaf9297d5293df6210de26c08815a5ffc961c16f3b0ce4bf86e84f7
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ env:
3
+ - DB=mysql:utf8_general_ci
4
+ - DB=mysql:utf8_bin
5
+ - DB=pg DB_USER=postgres
6
+ - DB=sqlite
7
+ rvm:
8
+ - 1.9.3
9
+ - 2.0.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,79 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: binary_fixtures 0.1.1 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "binary_fixtures"
9
+ s.version = "0.1.1"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.authors = ["Victor Costan"]
13
+ s.date = "2013-11-24"
14
+ s.description = "Convenience method for inlining binary data in Rails fixtures"
15
+ s.email = "victor@costan.us"
16
+ s.extra_rdoc_files = [
17
+ "LICENSE",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".travis.yml",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "binary_fixtures.gemspec",
30
+ "lib/binary_fixtures.rb",
31
+ "lib/binary_fixtures/fixture_helpers.rb",
32
+ "lib/binary_fixtures/patch_rails.rb",
33
+ "lib/binary_fixtures/rails_13022.rb",
34
+ "test/fixtures/attachments.yml",
35
+ "test/fixtures/files/invoice.pdf",
36
+ "test/fixtures/files/ruby.png",
37
+ "test/helper.rb",
38
+ "test/helpers/db_setup.rb",
39
+ "test/helpers/rails.rb",
40
+ "test/migrations/001_create_attachments.rb",
41
+ "test/test_binary_fixtures.rb"
42
+ ]
43
+ s.homepage = "http://github.com/pwnall/binary_fixtures"
44
+ s.licenses = ["MIT"]
45
+ s.require_paths = ["lib"]
46
+ s.rubygems_version = "2.1.11"
47
+ s.summary = "Use binary files in Rails fixtures"
48
+
49
+ if s.respond_to? :specification_version then
50
+ s.specification_version = 4
51
+
52
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
+ s.add_runtime_dependency(%q<rails>, [">= 4.0.0"])
54
+ s.add_development_dependency(%q<bundler>, [">= 1.3.5"])
55
+ s.add_development_dependency(%q<jeweler>, [">= 1.8.7"])
56
+ s.add_development_dependency(%q<mysql2>, [">= 0.3.14"])
57
+ s.add_development_dependency(%q<pg>, [">= 0.17.0"])
58
+ s.add_development_dependency(%q<sqlite3>, [">= 1.3.8"])
59
+ s.add_development_dependency(%q<yard>, [">= 0.7"])
60
+ else
61
+ s.add_dependency(%q<rails>, [">= 4.0.0"])
62
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
63
+ s.add_dependency(%q<jeweler>, [">= 1.8.7"])
64
+ s.add_dependency(%q<mysql2>, [">= 0.3.14"])
65
+ s.add_dependency(%q<pg>, [">= 0.17.0"])
66
+ s.add_dependency(%q<sqlite3>, [">= 1.3.8"])
67
+ s.add_dependency(%q<yard>, [">= 0.7"])
68
+ end
69
+ else
70
+ s.add_dependency(%q<rails>, [">= 4.0.0"])
71
+ s.add_dependency(%q<bundler>, [">= 1.3.5"])
72
+ s.add_dependency(%q<jeweler>, [">= 1.8.7"])
73
+ s.add_dependency(%q<mysql2>, [">= 0.3.14"])
74
+ s.add_dependency(%q<pg>, [">= 0.17.0"])
75
+ s.add_dependency(%q<sqlite3>, [">= 1.3.8"])
76
+ s.add_dependency(%q<yard>, [">= 0.7"])
77
+ end
78
+ end
79
+
@@ -3,28 +3,24 @@ require 'active_record/fixtures'
3
3
 
4
4
  # Packaged version of https://github.com/rails/rails/pull/13022
5
5
  unless defined?(ActiveRecord::FixtureSet::RenderContext)
6
- module ActiveRecord
7
- class FixtureSet
8
- # The context used by the ERB fixture renderer.
9
- #
10
- # Make helper functions available in your fixtures by defining them in a
11
- # module and including it in ActiveRecord::FixtureSet::RenderContext.
12
- #
13
- # A new subclass of this class is created each time the ERB renderer is
14
- # called so that methods defined in ERB templates do not leak into other
15
- # templates' context.
16
- class RenderContext
17
- # An instance of a new RenderContext subclass.
18
- def self.create
19
- klass = ::Class.new(ActiveRecord::FixtureSet::RenderContext) do
20
- def get_binding
21
- binding()
22
- end
23
- end
24
-
25
- klass.new
6
+ # The context used by the ERB fixture renderer.
7
+ #
8
+ # Make helper functions available in your fixtures by defining them in a
9
+ # module and including it in ActiveRecord::FixtureSet::RenderContext.
10
+ #
11
+ # A new subclass of this class is created each time the ERB renderer is
12
+ # called so that methods defined in ERB templates do not leak into other
13
+ # templates' context.
14
+ class ActiveRecord::FixtureSet::RenderContext
15
+ # An instance of a new RenderContext subclass.
16
+ def self.create
17
+ klass = ::Class.new(ActiveRecord::FixtureSet::RenderContext) do
18
+ def get_binding
19
+ binding()
26
20
  end
27
21
  end
22
+
23
+ klass.new
28
24
  end
29
25
  end
30
26
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: binary_fixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -117,12 +117,14 @@ extra_rdoc_files:
117
117
  - README.rdoc
118
118
  files:
119
119
  - .document
120
+ - .travis.yml
120
121
  - Gemfile
121
122
  - Gemfile.lock
122
123
  - LICENSE
123
124
  - README.rdoc
124
125
  - Rakefile
125
126
  - VERSION
127
+ - binary_fixtures.gemspec
126
128
  - lib/binary_fixtures.rb
127
129
  - lib/binary_fixtures/fixture_helpers.rb
128
130
  - lib/binary_fixtures/patch_rails.rb