nrser 0.0.7 → 0.0.8

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: 5613f267360bdb2ff8af4120116b59d1e348f90c
4
- data.tar.gz: 5492a2ffd330274e01e7ce83110877c55adae7e4
3
+ metadata.gz: 0613f5168e67281b8c906735f9866e32d8fd4a99
4
+ data.tar.gz: dfca12ed21073bd7477b80eca9dccde08b6459a3
5
5
  SHA512:
6
- metadata.gz: dc4f080da2d7ab98526674983acc1d4f1c08d1319ff96d2ccc6740dd4b6ab4dbd692c68e36fc51e46db1286131660ccac2fb03493cc7e736ced9a89175ea0288
7
- data.tar.gz: 1aa2be5f247e7b23808e1ee07d6116627f54182d3507cfffb13f6dd76171d0ade34ca6b83c7dbc44bca9aea15d3024ca4e21fb5ddae82d209f6b87d4a192e794
6
+ metadata.gz: 3fc0b83a8f905dabd559fad5f403f95585f1c46186e522c1557fbc509d3bdc5c0333dcbe1e977b3bd8edb216387a5233e68ab86347e4993e1e1f7923b39b17f5
7
+ data.tar.gz: 0db67a3bdf45e0e891748cf1ad1701c210f21187f9a0a16ef2ab480d9fe8edd0c96e243616bd5b708741ca0c01137459ce5401380e26fc5ee9b4934c3f05cc1f
data/lib/nrser/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NRSER
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lib/nrser.rb CHANGED
@@ -25,8 +25,8 @@ module NRSER
25
25
  NRSER.dedent self
26
26
  end
27
27
 
28
- def indent
29
- NRSER.indent self
28
+ def indent *args
29
+ NRSER.indent self, *args
30
30
  end
31
31
 
32
32
  def truncate *args
@@ -32,6 +32,20 @@ end
32
32
  def f x
33
33
  x * x
34
34
  end
35
+ BLOCK
36
+ end
37
+
38
+ it "accepts arguments to the refinement of String" do
39
+ expect(
40
+ <<-BLOCK.indent(4)
41
+ def f x
42
+ x * x
43
+ end
44
+ BLOCK
45
+ ).to eq <<-BLOCK
46
+ def f x
47
+ x * x
48
+ end
35
49
  BLOCK
36
50
  end
37
51
  end # indent
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nrser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-20 00:00:00.000000000 Z
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler