munin_manager 1.2.1 → 1.2.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.
Files changed (4) hide show
  1. data/Rakefile +1 -1
  2. data/VERSION +1 -1
  3. data/ext/string.rb +8 -0
  4. metadata +2 -1
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ begin
7
7
  s.email = "entombedvirus@gmail.com"
8
8
  s.homepage = "http://github.com/entombedvirus/jeweler"
9
9
  s.authors = ["Rohith Ravi"]
10
- s.files = FileList["[A-Z]*", "{bin,generators,lib,test}/**/*", 'lib/jeweler/templates/.gitignore']
10
+ s.files = FileList["[A-Z]*", "{bin,generators,lib,test,ext}/**/*", 'lib/jeweler/templates/.gitignore']
11
11
  end
12
12
  rescue LoadError
13
13
  puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
data/ext/string.rb ADDED
@@ -0,0 +1,8 @@
1
+ class String
2
+ unless String.new.respond_to?(:starts_with?)
3
+ def starts_with?(prefix)
4
+ prefix = prefix.to_s
5
+ self[0, prefix.length] == prefix
6
+ end
7
+ end
8
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: munin_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rohith Ravi
@@ -28,6 +28,7 @@ files:
28
28
  - VERSION
29
29
  - bin/munin_manager
30
30
  - bin/runner
31
+ - ext/string.rb
31
32
  - lib/munin_manager.rb
32
33
  - lib/munin_manager/acts_as_munin_plugin.rb
33
34
  - lib/munin_manager/log_reader.rb