acts_as_crazy 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/acts_as_crazy.gemspec +1 -1
- data/lib/acts_as_crazy/crazy.rb +1 -2
- data/lib/acts_as_crazy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7126c1826cac3599ede99c491db02ac9376e232471582a3c30dde42705ba62b1
|
4
|
+
data.tar.gz: 3819b6edb765752e7e34821865d708f71eb45cea9663402363e6d557c6bde3d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 795f41b06424fbb60b870c0fc8c39756fc40525aa93d019a3ed442d646da674e363f02e3cc9a849bbdd0a976ad87cbb769b69dc32966cb78a81993b3198ac20a
|
7
|
+
data.tar.gz: ec5e9f95488e290408ee090626c26a9d66fa078c4f56c230d54d3d968dcaf31f71cc7ab2c83a17dcc059b731d9d632251eb6177edcffdcb8958bb974e88b614f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -40,13 +40,13 @@ To enable `acts_as_crazy` simply call `acts_as_crazy` in the scope of a ruby cla
|
|
40
40
|
end
|
41
41
|
```
|
42
42
|
|
43
|
-
then whenever you call a method in an instance of that class you'll get random errors:
|
43
|
+
then whenever you call a method in an instance of that class you'll get random errors with facts about Chuck Norris:
|
44
44
|
|
45
45
|
```
|
46
|
-
|
46
|
+
[10] pry(main)>Foo.some_method
|
47
|
+
ActsAsCrazy::CrazyError: Sorry, I'm crazy. Did you know that Chuck Norris doesn't delete files, he blows them away.
|
47
48
|
```
|
48
49
|
|
49
|
-
|
50
50
|
## Development
|
51
51
|
|
52
52
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -55,4 +55,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
55
55
|
|
56
56
|
## Contributing
|
57
57
|
|
58
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
58
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/idelahoz/acts_as_crazy.
|
data/acts_as_crazy.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = "Just a crazy gem to do crazy stuff"
|
13
13
|
spec.description = "acts_as_crazy makes your objects do crazy things at random moments"
|
14
|
-
spec.homepage = "http://github.com/idelahoz"
|
14
|
+
spec.homepage = "http://github.com/idelahoz/acts_as_crazy"
|
15
15
|
|
16
16
|
# Specify which files should be added to the gem when it is released.
|
17
17
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/lib/acts_as_crazy/crazy.rb
CHANGED
@@ -12,12 +12,11 @@ module ActsAsCrazy
|
|
12
12
|
|
13
13
|
method_names = e.methods - Object.new.methods
|
14
14
|
method_names.each do |method_name|
|
15
|
-
e.define_singleton_method
|
15
|
+
e.define_singleton_method method_name do |*args, &block|
|
16
16
|
do_something_crazy
|
17
17
|
super(*args, &block)
|
18
18
|
end
|
19
19
|
end
|
20
|
-
|
21
20
|
e
|
22
21
|
end
|
23
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_crazy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Israel De La Hoz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faker
|
@@ -87,7 +87,7 @@ files:
|
|
87
87
|
- lib/acts_as_crazy/configuration.rb
|
88
88
|
- lib/acts_as_crazy/crazy.rb
|
89
89
|
- lib/acts_as_crazy/version.rb
|
90
|
-
homepage: http://github.com/idelahoz
|
90
|
+
homepage: http://github.com/idelahoz/acts_as_crazy
|
91
91
|
licenses: []
|
92
92
|
metadata: {}
|
93
93
|
post_install_message:
|