rbsed 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c17fdfc48fa42a006a8049dce9eda15123de2461
4
+ data.tar.gz: 381c8ee6b4415dd15325d283a25c02cf76836709
5
+ SHA512:
6
+ metadata.gz: ec8bd77fadb38cc4854dc1019c7063453dd99e16a8b28cb47eaa1e4e2b36cf0a434305296c4027ead96acdb525b5ca21937b3f3fc9ae1d060ffb4f875132741d
7
+ data.tar.gz: 46e6d2f74974677578ed3caa4f7255a144503729e163b23b50115aad4c03475928369057e400aa238015680c818008faa126e7a83ef188fa2dd51bd22facd303
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## simple text formatting
1
+ ## sed-like text replace
2
2
 
3
3
  Usage (from `tests/rbsed_test.rb`):
4
4
 
@@ -13,9 +13,11 @@ Usage (from `tests/rbsed_test.rb`):
13
13
  "Foobar".sed('s/O/p/g') # => "Foobar"
14
14
  ```
15
15
 
16
+ `String#sed(str)` is non-destructive, `String#sed!(str)` is destructive.
17
+
16
18
  ## License
17
19
 
18
- Copyright (c) 2011, Nick Markwell <nick@duckinator.net>
20
+ Copyright (c) 2011 Marie Markwell <me@marie.so>
19
21
 
20
22
  Permission to use, copy, modify, and/or distribute this software for any
21
23
  purpose with or without fee is hereby granted, provided that the above
data/lib/rbsed/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RBSed
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/rbsed.rb CHANGED
@@ -30,7 +30,7 @@ class String
30
30
  if flags.include?('g')
31
31
  self.gsub!(match) { parts[2] }
32
32
  else
33
- self.sub! (match) { parts[2] }
33
+ self.sub!(match) { parts[2] }
34
34
  end
35
35
 
36
36
  self
data/rbsed.gemspec CHANGED
@@ -5,8 +5,8 @@ require "rbsed/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "rbsed"
7
7
  s.version = RBSed::VERSION
8
- s.authors = ["Nick Markwell"]
9
- s.email = ["nick@duckinator.net"]
8
+ s.authors = ["Marie Markwell"]
9
+ s.email = ["me@marie.so"]
10
10
  s.homepage = "https://github.com/duckinator/rbsed"
11
11
  s.summary = %q{Provides str.sed('s/a/b/flags') and similar.}
12
12
  s.description = s.summary
metadata CHANGED
@@ -1,29 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbsed
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
6
5
  platform: ruby
7
- authors:
8
- - Nick Markwell
6
+ authors:
7
+ - Marie Markwell
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
-
13
- date: 2011-07-17 00:00:00 Z
11
+ date: 2015-07-26 00:00:00.000000000 Z
14
12
  dependencies: []
15
-
16
13
  description: Provides str.sed('s/a/b/flags') and similar.
17
- email:
18
- - nick@duckinator.net
14
+ email:
15
+ - me@marie.so
19
16
  executables: []
20
-
21
17
  extensions: []
22
-
23
18
  extra_rdoc_files: []
24
-
25
- files:
26
- - .gitignore
19
+ files:
20
+ - ".gitignore"
27
21
  - Gemfile
28
22
  - README.md
29
23
  - Rakefile
@@ -34,31 +28,28 @@ files:
34
28
  - test/teststrap.rb
35
29
  homepage: https://github.com/duckinator/rbsed
36
30
  licenses: []
37
-
31
+ metadata: {}
38
32
  post_install_message:
39
33
  rdoc_options: []
40
-
41
- require_paths:
34
+ require_paths:
42
35
  - lib
43
- required_ruby_version: !ruby/object:Gem::Requirement
44
- none: false
45
- requirements:
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
46
38
  - - ">="
47
- - !ruby/object:Gem::Version
48
- version: "0"
49
- required_rubygems_version: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
52
43
  - - ">="
53
- - !ruby/object:Gem::Version
54
- version: "0"
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
55
46
  requirements: []
56
-
57
47
  rubyforge_project:
58
- rubygems_version: 1.8.5
48
+ rubygems_version: 2.2.2
59
49
  signing_key:
60
- specification_version: 3
50
+ specification_version: 4
61
51
  summary: Provides str.sed('s/a/b/flags') and similar.
62
- test_files:
52
+ test_files:
63
53
  - test/rbsed_test.rb
64
54
  - test/teststrap.rb
55
+ has_rdoc: