import.rb 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/import.rb.gemspec +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -55
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c8efeda908f064fe724ea86726341c7050eff71
|
4
|
+
data.tar.gz: 852c4de05c7976e753a46475885397af6996f5d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 309e92fdd0dbc5cb4dffe0de68e6c1cf690fdefc18d8f4086c630f1b0303071cfd4faa44ed07cd5941accceac3f39c2b8b6c5bc1216b96203625e438fa0bd01c
|
7
|
+
data.tar.gz: 33169b00d63a31fa3eb5d346834c7b4ec1980ed960e6d7f2af6bbe54dd3ce13ca29ac681354962ad96b56204532245f28b76cad4ebc9c653b3aa271540c581ba
|
data/README.md
CHANGED
data/import.rb.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["p.ck.t22@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = "Instead of Kernel.require"
|
13
|
-
spec.description =
|
13
|
+
spec.description = "Instead of Kernel.require"
|
14
14
|
spec.homepage = "https://github.com/pocke/import.rb"
|
15
15
|
spec.license = 'CC0-1.0'
|
16
16
|
|
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.1.
|
1
|
+
VERSION = '0.1.2'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: import.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masataka Kuwabara
|
@@ -38,60 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
-
description:
|
42
|
-
# import.rb
|
43
|
-
|
44
|
-
Instead of `Kernel.require`.
|
45
|
-
|
46
|
-
|
47
|
-
## Installation
|
48
|
-
|
49
|
-
Add this line to your application's Gemfile:
|
50
|
-
|
51
|
-
```ruby
|
52
|
-
gem 'import.rb'
|
53
|
-
```
|
54
|
-
|
55
|
-
And then execute:
|
56
|
-
|
57
|
-
$ bundle
|
58
|
-
|
59
|
-
Or install it yourself as:
|
60
|
-
|
61
|
-
$ gem install import.rb
|
62
|
-
|
63
|
-
## Usage
|
64
|
-
|
65
|
-
- cat.rb
|
66
|
-
|
67
|
-
```ruby
|
68
|
-
class Cat
|
69
|
-
def meow
|
70
|
-
puts 'meow meow'
|
71
|
-
end
|
72
|
-
end
|
73
|
-
```
|
74
|
-
|
75
|
-
- main.rb
|
76
|
-
|
77
|
-
```ruby
|
78
|
-
require 'import'
|
79
|
-
cat = import('./cat')::Cat
|
80
|
-
cat.new.meow # => meow meow
|
81
|
-
|
82
|
-
# Cat # => uninitialized constant Cat (NameError)
|
83
|
-
```
|
84
|
-
|
85
|
-
## Development
|
86
|
-
|
87
|
-
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.
|
88
|
-
|
89
|
-
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).
|
90
|
-
|
91
|
-
## Contributing
|
92
|
-
|
93
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/pocke/import.rb .
|
94
|
-
|
41
|
+
description: Instead of Kernel.require
|
95
42
|
email:
|
96
43
|
- p.ck.t22@gmail.com
|
97
44
|
executables: []
|