dry-data-rails 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: ac964d9c4bcedb27242a7c331eba18cd0af680e7
4
- data.tar.gz: c611832d631c3f16262edf64173b966e8acbe68e
3
+ metadata.gz: a26b3d3369ce37b61a1f6ec3310c3f3ba6f5be78
4
+ data.tar.gz: 03493549004655d24807ee57880ec6077f7733e3
5
5
  SHA512:
6
- metadata.gz: ae3befd82016b0fe087db09a28c4d5ff4ea0ea568bad8792fd146aaf9de8b551584939cb1583a78babb9246d283029e2981ca13d85bb10ded9446baa419f5e16
7
- data.tar.gz: b916a9ba79f192664ef51ebf7fd05ac91a98b2dd6b68539c5366eebd5ecb24630e9be263989f2c4477114e58f3de0acc8c8745f9616b5099f72b90accb71a722
6
+ metadata.gz: 0a8447b1f0688a52174a5f455b3dc113fe42c460e4ef6ea80ff1b9268eb044bfd89e74f7bb4780c2d40d85bc683e39904d8a88030047b648a0b85d4c01624bdb
7
+ data.tar.gz: 603bfa1509446ba827b3487b2299f4d2bbca07d9635992ee9d1c7c0b447aa8ec92d159489ee9bc88e2a493a2decda3f01c8fbed199f5523f301bcbfa60573209
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Dry::Data::Rails
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dry/data/rails`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Really simple gem that will help you work with the [`dry-data`](https://github.com/dryrb/dry-data) gem in development.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ## Raison d'être
6
+
7
+ Rails reloads code quite often in development, this broke the usage of `Dry::Data` since it would register the same types multiple times and raise exceptions.
6
8
 
7
9
  ## Installation
8
10
 
@@ -12,28 +14,13 @@ Add this line to your application's Gemfile:
12
14
  gem 'dry-data-rails'
13
15
  ```
14
16
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install dry-data-rails
22
-
23
17
  ## Usage
24
18
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
19
+ Nothing to do, this is using `Rails::Railtie`, which means it gets loaded automatically.
32
20
 
33
21
  ## Contributing
34
22
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dry-data-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
-
23
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jeromegn/dry-data-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
37
24
 
38
25
  ## License
39
26
 
@@ -3,7 +3,9 @@ module Dry
3
3
  module Rails
4
4
  class Railtie < ::Rails::Railtie
5
5
  config.to_prepare do
6
- Dry::Data.remove_instance_variable :@container
6
+ if Dry::Data.instance_variable_defined? :@container
7
+ Dry::Data.remove_instance_variable :@container
8
+ end
7
9
  end
8
10
  end
9
11
  end
@@ -1,7 +1,7 @@
1
1
  module Dry
2
2
  module Data
3
3
  module Rails
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-data-rails
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
  - Jerome Gravel-Niquet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -132,9 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.5.0
135
+ rubygems_version: 2.4.5.1
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Simplifies dry-data usage with Rails.
139
139
  test_files: []
140
- has_rdoc: