mark_facets 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ class File
2
+
3
+ class << self
4
+
5
+ def update(file_path)
6
+ file = File.read(file_path)
7
+ yield file
8
+ File.open(file_path, 'w') {|f| f.write(file)}
9
+ end
10
+
11
+ end
12
+
13
+ end
@@ -1,4 +1,4 @@
1
- require 'digest/md5' if Ruby.v18?
1
+ require 'digest/md5'# if Ruby.v18?
2
2
  class String
3
3
 
4
4
  def md5_hash
data/lib/mark_facets.rb CHANGED
@@ -6,7 +6,7 @@ path = File.join(File.dirname(__FILE__), 'mark_facets')
6
6
  ruby_path = File.join(path, 'ruby')
7
7
  rails_path = File.join(path, 'rails')
8
8
 
9
- %w{ruby string hash big_decimal math}.each do |f|
9
+ %w{ruby string hash big_decimal math file}.each do |f|
10
10
  p = File.expand_path(File.join(ruby_path, f))
11
11
  # puts p
12
12
  require p
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mark_facets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 8
10
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
11
10
  platform: ruby
12
11
  authors:
13
12
  - markbates
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-21 00:00:00 -04:00
17
+ date: 2010-08-05 00:00:00 -04:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 3
30
28
  segments:
31
29
  - 0
32
30
  version: "0"
@@ -52,6 +50,7 @@ files:
52
50
  - lib/mark_facets/rails/test/rspec/should/render_404.rb
53
51
  - lib/mark_facets/rails/test.rb
54
52
  - lib/mark_facets/ruby/big_decimal.rb
53
+ - lib/mark_facets/ruby/file.rb
55
54
  - lib/mark_facets/ruby/hash.rb
56
55
  - lib/mark_facets/ruby/math.rb
57
56
  - lib/mark_facets/ruby/ruby.rb
@@ -73,7 +72,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
73
72
  requirements:
74
73
  - - ">="
75
74
  - !ruby/object:Gem::Version
76
- hash: 3
77
75
  segments:
78
76
  - 0
79
77
  version: "0"
@@ -82,7 +80,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
80
  requirements:
83
81
  - - ">="
84
82
  - !ruby/object:Gem::Version
85
- hash: 3
86
83
  segments:
87
84
  - 0
88
85
  version: "0"