plock 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/README.md +4 -13
- data/lib/plock/version.rb +1 -1
- data/plock.gemspec +2 -1
- data/sample/sample.rb +11 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05635f98c9cbf4da943f8acdfd4c70513cb8618b
|
4
|
+
data.tar.gz: 3724c5b91bb823f99d1291185790b2cc70b231b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5af6d0f5470c83090a415afb7949f9ec85e2101a828340d234f05405b014fc31ce377caa0d946588210ab80938d1240351262e1779e3a539a9cd3f98ab28a1b
|
7
|
+
data.tar.gz: 7772fa087f96ef42d5e9dfbca83ef2fd213dedea8d53287e4a8de5fb465b9d904699a6020cde1b45cee7e3e2dba117bde4169970b06604bbd28d6664c2596a72
|
data/README.md
CHANGED
@@ -2,24 +2,15 @@
|
|
2
2
|
|
3
3
|
p + block = plock. 'p { 1 + 1 }` prints "(1 + 1) #=> 2". That's all.
|
4
4
|
|
5
|
-
|
5
|
+
# Usage
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
gem 'plock'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install plock
|
7
|
+
After installing by gem install command, Try sample/sample.rb with your Ruby. You can get it soon.
|
18
8
|
|
19
9
|
## Known Bugs
|
20
10
|
**Important Note:** Plock depends on [sourcify](https://github.com/ngty/sourcify) (so far), it has a big restriction:
|
21
11
|
|
22
|
-
-
|
12
|
+
- Can't use on REPLs such as pry, irb and so on: you have to use p/pp in a source code saved on the disk.
|
13
|
+
- You can put p-with-block ONLY ONCE PER LINE. Otherwise you'll get Sourcify::MultipleMatchingProcsPerLineError.
|
23
14
|
|
24
15
|
## Contributing
|
25
16
|
|
data/lib/plock/version.rb
CHANGED
data/plock.gemspec
CHANGED
@@ -21,5 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
|
-
|
24
|
+
|
25
|
+
spec.add_runtime_dependency "sourcify"
|
25
26
|
end
|
data/sample/sample.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yamamoto Yuji
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,7 +59,7 @@ dependencies:
|
|
59
59
|
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
type: :
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- lib/plock.rb
|
82
82
|
- lib/plock/version.rb
|
83
83
|
- plock.gemspec
|
84
|
+
- sample/sample.rb
|
84
85
|
- spec/plock_spec.rb
|
85
86
|
homepage: https://github.com/igrep/plock
|
86
87
|
licenses:
|