augeas 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +3 -0
  3. data/README.rdoc +1 -0
  4. data/Rakefile +52 -62
  5. data/tests/tc_augeas.rb +6 -6
  6. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d142e1976cf654e05190a66f4d934d095eb4e82f
4
- data.tar.gz: 7a302a310e4d3ac87fe1d8ce3437c61613f5de92
3
+ metadata.gz: 83175d2769bbecbc9d667d76248ce9daeb1509c0
4
+ data.tar.gz: 3ace049fba2187532e1a92b7bd66295b0ac1a8e8
5
5
  SHA512:
6
- metadata.gz: 5e54d8684e75db6d46e6b3645d4f5ee7346021bdc5998bc1d180610eeecd18077eabc35c7e6db32e5ab2d1da30724220ccc7e09c7224ea305c215862e319943b
7
- data.tar.gz: 30a9d6d1b2d9535b7f5f852f64f571fd32515be6b144cc7d3ba43c24dba30ba000922daeb76c67ecf6a4432ca30f8e99c6391668874a13cfd035ab8f36b997d4
6
+ metadata.gz: 605fb08bd96e35f914ea7f8cc1434ff829e9ca3ee5b54e48ad53e53fc6c0d5c36ff5ac3b64def3b7b3a3f440da5ec1c426dba91509be785fb5e99bef1305dfd6
7
+ data.tar.gz: 716ce9819844f644ca88b8ccaaf1f4295313f32b4330d9d77c59890f8e6a345a3a89d959673629729a16494a67c361aa823df32b9ede2d987d6b0fdb5d0fa2e2
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 0.6.3 - 2014-02-20
2
+ - clean up, restore Ruby 1.8.7 compatibility in tests
3
+
1
4
  0.6.0 - 2014-01-19
2
5
  - merge pull request by mapleoin (https://github.com/mapleoin):
3
6
  raise exceptions instead of returning error codes
@@ -1,5 +1,6 @@
1
1
  = Ruby bindings for augeas
2
2
 
3
+ {<img src="https://travis-ci.org/dotdoom/augeas.png?branch=master" alt="Travis CI build results" />}[https://travis-ci.org/dotdoom/augeas]
3
4
  {<img src="https://badge.fury.io/rb/augeas.png" alt="Gem Version" />}[http://badge.fury.io/rb/augeas]
4
5
 
5
6
  The class Augeas provides bindings to augeas [http://augeas.net] library.
data/Rakefile CHANGED
@@ -11,92 +11,82 @@ require 'rdoc/task'
11
11
  require 'rake/testtask'
12
12
  require 'rubygems/package_task'
13
13
 
14
- GEM_NAME='augeas'
15
- GEM_VERSION='0.6.2'
16
- EXT_CONF='ext/augeas/extconf.rb'
17
- MAKEFILE="ext/augeas/Makefile"
18
- AUGEAS_MODULE="ext/augeas/_augeas.so"
19
- SPEC_FILE="augeas.spec"
20
- AUGEAS_SRC=AUGEAS_MODULE.gsub(/.so$/, ".c")
14
+ GEM_NAME = 'augeas'
15
+ GEM_VERSION = '0.6.3'
16
+ EXT_CONF = 'ext/augeas/extconf.rb'
17
+ MAKEFILE = 'ext/augeas/Makefile'
18
+ AUGEAS_MODULE = 'ext/augeas/_augeas.so'
19
+ SPEC_FILE = 'augeas.spec'
20
+ AUGEAS_SRC = AUGEAS_MODULE.gsub(/\.so$/, '.c')
21
21
 
22
- #
23
- # Building the actual bits
24
- #
25
- CLEAN.include [ "**/*~",
26
- "ext/**/*.o", AUGEAS_MODULE,
27
- "ext/**/depend" ]
22
+ # Clean - remove all intermediate files / temporary files, do not touch final product.
23
+ CLEAN.include '**/*~',
24
+ 'ext/**/*.o',
25
+ MAKEFILE,
26
+ 'ext/**/depend',
27
+ 'ext/**/mkmf.log'
28
28
 
29
- CLOBBER.include [ "config.save",
30
- "ext/**/mkmf.log",
31
- MAKEFILE ]
29
+ # Clobber - return to original state.
30
+ CLOBBER.include AUGEAS_MODULE
32
31
 
33
32
  file MAKEFILE => EXT_CONF do |t|
34
- Dir::chdir(File::dirname(EXT_CONF)) do
35
- unless sh "ruby #{File::basename(EXT_CONF)}"
36
- $stderr.puts "Failed to run extconf"
37
- break
38
- end
39
- end
33
+ Dir::chdir(File::dirname(EXT_CONF)) do
34
+ unless sh 'ruby', File::basename(EXT_CONF)
35
+ fail 'Failed to run extconf'
36
+ end
37
+ end
40
38
  end
39
+
41
40
  file AUGEAS_MODULE => [ MAKEFILE, AUGEAS_SRC ] do |t|
42
- Dir::chdir(File::dirname(EXT_CONF)) do
43
- unless sh "make"
44
- $stderr.puts "make failed"
45
- break
46
- end
47
- end
41
+ Dir::chdir(File::dirname(EXT_CONF)) do
42
+ unless sh "make"
43
+ fail 'make failed'
44
+ end
45
+ end
48
46
  end
49
- desc "Build the native library"
47
+
48
+ desc 'Build the native library'
50
49
  task :build => AUGEAS_MODULE
51
50
 
52
- #
53
- # Testing
54
- #
55
51
  Rake::TestTask.new(:test) do |t|
56
- t.test_files = FileList['tests/tc_*.rb']
57
- t.libs = [ 'lib', 'ext/augeas' ]
52
+ t.test_files = FileList['tests/tc_*.rb']
53
+ t.libs = ['lib', 'ext/augeas']
58
54
  end
59
55
  task :test => :build
60
56
 
61
57
 
62
- #
63
- # Generate the documentation
64
- #
65
58
  RDoc::Task.new do |rd|
66
- rd.main = "README.rdoc"
67
- rd.rdoc_dir = "doc/site/api"
68
- rd.rdoc_files.include("README.rdoc", "ext/**/*.[ch]","lib/**/*.rb")
59
+ rd.main = "README.rdoc"
60
+ rd.rdoc_dir = "doc/site/api"
61
+ rd.rdoc_files.include("README.rdoc", "ext/**/*.[ch]","lib/**/*.rb")
69
62
  end
70
63
 
71
- #
72
- # Packaging
73
- #
74
64
  PKG_FILES = FileList[
75
- "Rakefile", "COPYING","README.rdoc", "NEWS",
76
- "ext/**/*.[ch]", "lib/**/*.rb", "ext/**/MANIFEST", "ext/**/extconf.rb",
77
- "tests/**/*",
78
- "spec/**/*"
65
+ "Rakefile", "COPYING","README.rdoc", "NEWS",
66
+ "ext/**/*.[ch]", "lib/**/*.rb", "ext/**/MANIFEST", "ext/**/extconf.rb",
67
+ "tests/**/*",
68
+ "spec/**/*"
79
69
  ]
80
70
 
81
71
  SPEC = Gem::Specification.new do |s|
82
- s.name = GEM_NAME
83
- s.version = GEM_VERSION
84
- s.email = "dot.doom@gmail.com"
85
- s.homepage = "https://github.com/dotdoom/augeas"
86
- s.summary = "Ruby bindings for augeas"
87
- s.authors = ["Bryan Kearney", "David Lutterkort", "Ionut Artarisi", "Artem Sheremet"]
88
- s.files = PKG_FILES
89
- s.licenses = ['LGPLv2']
90
- s.required_ruby_version = '>= 1.8.7'
91
- s.extensions = "ext/augeas/extconf.rb"
92
- s.description = "A fork of ruby-augeas (bindings for augeas) with exceptions support."
93
- s.add_development_dependency "rake"
94
- s.add_development_dependency "rdoc"
72
+ s.name = GEM_NAME
73
+ s.version = GEM_VERSION
74
+ s.email = "dot.doom@gmail.com"
75
+ s.homepage = "https://github.com/dotdoom/augeas"
76
+ s.summary = "Ruby bindings for augeas"
77
+ s.authors = ["Bryan Kearney", "David Lutterkort", "Ionut Artarisi", "Artem Sheremet"]
78
+ s.files = PKG_FILES
79
+ s.licenses = ['LGPLv2']
80
+ s.required_ruby_version = '>= 1.8.7'
81
+ s.extensions = "ext/augeas/extconf.rb"
82
+ s.description = "A fork of ruby-augeas (bindings for augeas) with exceptions support."
83
+ s.add_development_dependency "rake"
84
+ s.add_development_dependency "rdoc"
95
85
  end
96
86
 
97
87
  Gem::PackageTask.new(SPEC) do |pkg|
98
- pkg.need_tar = true
99
- pkg.need_zip = true
88
+ pkg.need_tar = true
89
+ pkg.need_zip = true
100
90
  end
101
91
 
102
92
  task :default => [:build, :test]
@@ -472,14 +472,14 @@ class TestAugeas < Test::Unit::TestCase
472
472
  end
473
473
 
474
474
  def test_label
475
- Augeas::create(root: "/dev/null") do |aug|
475
+ Augeas::create(:root => "/dev/null") do |aug|
476
476
  assert_equal 'augeas', aug.label('/augeas')
477
477
  assert_equal 'files', aug.label('/files')
478
478
  end
479
479
  end
480
480
 
481
481
  def test_rename
482
- Augeas::create(root: "/dev/null") do |aug|
482
+ Augeas::create(:root => "/dev/null") do |aug|
483
483
  assert_raises(Augeas::InvalidLabelError) { aug.rename('/files', 'invalid/label') }
484
484
  assert_equal 0, aug.rename('/nonexistent', 'label')
485
485
  assert_equal ['/files'], aug.match('/files')
@@ -488,7 +488,7 @@ class TestAugeas < Test::Unit::TestCase
488
488
  end
489
489
 
490
490
  def test_text_store_retrieve
491
- Augeas::create(root: "/dev/null") do |aug|
491
+ Augeas::create(:root => "/dev/null") do |aug|
492
492
  # text_store errors
493
493
  assert_raises(Augeas::NoMatchError) { aug.text_store('Simplelines.lns', '/input', '/store') }
494
494
 
@@ -508,7 +508,7 @@ class TestAugeas < Test::Unit::TestCase
508
508
  end
509
509
 
510
510
  def test_context
511
- Augeas::create(root: "/dev/null") do |aug|
511
+ Augeas::create(:root => "/dev/null") do |aug|
512
512
  aug.context = '/augeas'
513
513
  assert_equal '/augeas', aug.get('/augeas/context')
514
514
  assert_equal '/augeas', aug.get('context')
@@ -517,7 +517,7 @@ class TestAugeas < Test::Unit::TestCase
517
517
  end
518
518
 
519
519
  def test_touch
520
- Augeas::create(root: "/dev/null") do |aug|
520
+ Augeas::create(:root => "/dev/null") do |aug|
521
521
  assert_equal [], aug.match('/foo')
522
522
  aug.touch '/foo'
523
523
  assert_equal ['/foo'], aug.match('/foo')
@@ -529,7 +529,7 @@ class TestAugeas < Test::Unit::TestCase
529
529
  end
530
530
 
531
531
  def test_clearm
532
- Augeas::create(root: "/dev/null") do |aug|
532
+ Augeas::create(:root => "/dev/null") do |aug|
533
533
  aug.set('/foo/a', '1')
534
534
  aug.set('/foo/b', '2')
535
535
  aug.clearm('/foo', '*')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: augeas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Kearney
@@ -11,34 +11,34 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-01-24 00:00:00.000000000 Z
14
+ date: 2014-02-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rdoc
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - '>='
34
+ - - ">="
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  description: A fork of ruby-augeas (bindings for augeas) with exceptions support.
@@ -48,14 +48,14 @@ extensions:
48
48
  - ext/augeas/extconf.rb
49
49
  extra_rdoc_files: []
50
50
  files:
51
- - Rakefile
52
51
  - COPYING
53
- - README.rdoc
54
52
  - NEWS
53
+ - README.rdoc
54
+ - Rakefile
55
55
  - ext/augeas/_augeas.c
56
56
  - ext/augeas/_augeas.h
57
- - lib/augeas.rb
58
57
  - ext/augeas/extconf.rb
58
+ - lib/augeas.rb
59
59
  - tests/root/etc/group
60
60
  - tests/root/etc/hosts
61
61
  - tests/root/etc/inittab
@@ -71,17 +71,17 @@ require_paths:
71
71
  - lib
72
72
  required_ruby_version: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.8.7
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.0.14
84
+ rubygems_version: 2.2.0
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Ruby bindings for augeas