hosts 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.gitignore +12 -0
- data/.rspec +1 -0
- data/.travis.yml +8 -0
- data/.yardopts +5 -0
- data/Gemfile +23 -0
- data/HISTORY.md +6 -0
- data/LICENSE.md +15 -0
- data/README.md +347 -0
- data/Rakefile +48 -0
- data/hosts.gemspec +57 -0
- data/lib/aef/hosts.rb +51 -0
- data/lib/aef/hosts/comment.rb +73 -0
- data/lib/aef/hosts/element.rb +108 -0
- data/lib/aef/hosts/empty_element.rb +50 -0
- data/lib/aef/hosts/entry.rb +123 -0
- data/lib/aef/hosts/file.rb +252 -0
- data/lib/aef/hosts/helpers.rb +121 -0
- data/lib/aef/hosts/section.rb +141 -0
- data/lib/aef/hosts/version.rb +29 -0
- data/lib/hosts.rb +25 -0
- data/lib/hosts/bare.rb +23 -0
- data/spec/aef/hosts/comment_spec.rb +136 -0
- data/spec/aef/hosts/element_spec.rb +12 -0
- data/spec/aef/hosts/empty_element_spec.rb +96 -0
- data/spec/aef/hosts/entry_spec.rb +252 -0
- data/spec/aef/hosts/file_spec.rb +290 -0
- data/spec/aef/hosts/helpers_spec.rb +103 -0
- data/spec/aef/hosts/section_spec.rb +299 -0
- data/spec/fixtures/linux_hosts +21 -0
- data/spec/fixtures/windows_hosts +14 -0
- data/spec/integration/integration_spec.rb +384 -0
- data/spec/spec_helper.rb +47 -0
- metadata +202 -0
- metadata.gz.sig +4 -0
metadata
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hosts
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alexander E. Fischer
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain:
|
12
|
+
- ! '-----BEGIN CERTIFICATE-----
|
13
|
+
|
14
|
+
MIIDKDCCAhCgAwIB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oTQEudzFk/gyQ686lp06HdLRt+O
|
41
|
+
|
42
|
+
HoQjTIab8vmfgIubjPdIRzokMfHbelvhLi+mQfWVghRhs2jpEfdXbL0w5nNw+trp
|
43
|
+
|
44
|
+
rO70Dw59hduDUOpgpxew+PLbs4vP1tb1QKPG+39C+PZtosbbf1fai0hqYV1txMCx
|
45
|
+
|
46
|
+
55akF+N8NbO6tpVDy6TMagqa10LfEpiQH6dvDHe/xdAqYOCrXKpmqzwu2PI=
|
47
|
+
|
48
|
+
-----END CERTIFICATE-----
|
49
|
+
|
50
|
+
'
|
51
|
+
date: 2012-04-04 00:00:00.000000000 Z
|
52
|
+
dependencies:
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: linebreak
|
55
|
+
requirement: &24094120 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 2.0.0
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: *24094120
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: bundler
|
66
|
+
requirement: &24093620 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ~>
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 1.1.0
|
72
|
+
type: :development
|
73
|
+
prerelease: false
|
74
|
+
version_requirements: *24093620
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: rake
|
77
|
+
requirement: &24093160 !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.9.2
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: *24093160
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: rspec
|
88
|
+
requirement: &24092700 !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 2.8.0
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: *24092700
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: &24092240 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ~>
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.6.1
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: *24092240
|
108
|
+
- !ruby/object:Gem::Dependency
|
109
|
+
name: pry
|
110
|
+
requirement: &24091740 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ~>
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 0.9.8
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: *24091740
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: yard
|
121
|
+
requirement: &24091120 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
123
|
+
requirements:
|
124
|
+
- - ~>
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 0.7.5
|
127
|
+
type: :development
|
128
|
+
prerelease: false
|
129
|
+
version_requirements: *24091120
|
130
|
+
description: ! 'Hosts is a Ruby library able to read or manipulate the operating system''s
|
131
|
+
host
|
132
|
+
|
133
|
+
files. When manipulating it tries to preserve their original formatting.
|
134
|
+
|
135
|
+
'
|
136
|
+
email:
|
137
|
+
- aef@raxys.net
|
138
|
+
executables: []
|
139
|
+
extensions: []
|
140
|
+
extra_rdoc_files:
|
141
|
+
- HISTORY.md
|
142
|
+
- LICENSE.md
|
143
|
+
files:
|
144
|
+
- .gitignore
|
145
|
+
- .rspec
|
146
|
+
- .travis.yml
|
147
|
+
- .yardopts
|
148
|
+
- Gemfile
|
149
|
+
- HISTORY.md
|
150
|
+
- LICENSE.md
|
151
|
+
- README.md
|
152
|
+
- Rakefile
|
153
|
+
- hosts.gemspec
|
154
|
+
- lib/aef/hosts.rb
|
155
|
+
- lib/aef/hosts/comment.rb
|
156
|
+
- lib/aef/hosts/element.rb
|
157
|
+
- lib/aef/hosts/empty_element.rb
|
158
|
+
- lib/aef/hosts/entry.rb
|
159
|
+
- lib/aef/hosts/file.rb
|
160
|
+
- lib/aef/hosts/helpers.rb
|
161
|
+
- lib/aef/hosts/section.rb
|
162
|
+
- lib/aef/hosts/version.rb
|
163
|
+
- lib/hosts.rb
|
164
|
+
- lib/hosts/bare.rb
|
165
|
+
- spec/aef/hosts/comment_spec.rb
|
166
|
+
- spec/aef/hosts/element_spec.rb
|
167
|
+
- spec/aef/hosts/empty_element_spec.rb
|
168
|
+
- spec/aef/hosts/entry_spec.rb
|
169
|
+
- spec/aef/hosts/file_spec.rb
|
170
|
+
- spec/aef/hosts/helpers_spec.rb
|
171
|
+
- spec/aef/hosts/section_spec.rb
|
172
|
+
- spec/fixtures/linux_hosts
|
173
|
+
- spec/fixtures/windows_hosts
|
174
|
+
- spec/integration/integration_spec.rb
|
175
|
+
- spec/spec_helper.rb
|
176
|
+
homepage: http://github.com/aef/hosts
|
177
|
+
licenses:
|
178
|
+
- ISC
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
none: false
|
185
|
+
requirements:
|
186
|
+
- - ! '>='
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 1.8.7
|
189
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
+
none: false
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
requirements: []
|
196
|
+
rubyforge_project:
|
197
|
+
rubygems_version: 1.8.10
|
198
|
+
signing_key:
|
199
|
+
specification_version: 3
|
200
|
+
summary: Host file manipulation for Ruby.
|
201
|
+
test_files: []
|
202
|
+
has_rdoc: yard
|
metadata.gz.sig
ADDED