jenkins_api_client 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ CHANGELOG
4
4
  upcoming
5
5
  --------
6
6
 
7
+ v0.7.3 [05-FEB-2013]
8
+ ---------------------
9
+ * Fixed #27 with a bug in create_view including extra character in the end of the name
10
+
7
11
  v0.7.2 [02-FEB-2013]
8
12
  ---------------------
9
13
  * Fixed a minor bug in `get_console_output` of Job.
@@ -0,0 +1,101 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "jenkins_api_client"
8
+ s.version = "0.7.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Kannan Manickam"]
12
+ s.date = "2013-02-02"
13
+ s.description = "\nThis is a simple and easy-to-use Jenkins Api client with features focused on\nautomating Job configuration programaticaly and so forth"
14
+ s.email = ["arangamani.kannan@gmail.com"]
15
+ s.executables = ["jenkinscli"]
16
+ s.files = [
17
+ ".gitignore",
18
+ ".jenkins.yml",
19
+ ".travis.yml",
20
+ "CHANGELOG.md",
21
+ "Gemfile",
22
+ "LICENCE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "bin/jenkinscli",
26
+ "config/login.yml.example",
27
+ "lib/jenkins_api_client.rb",
28
+ "lib/jenkins_api_client/build_queue.rb",
29
+ "lib/jenkins_api_client/cli/base.rb",
30
+ "lib/jenkins_api_client/cli/helper.rb",
31
+ "lib/jenkins_api_client/cli/job.rb",
32
+ "lib/jenkins_api_client/cli/node.rb",
33
+ "lib/jenkins_api_client/cli/system.rb",
34
+ "lib/jenkins_api_client/client.rb",
35
+ "lib/jenkins_api_client/exceptions.rb",
36
+ "lib/jenkins_api_client/job.rb",
37
+ "lib/jenkins_api_client/node.rb",
38
+ "lib/jenkins_api_client/system.rb",
39
+ "lib/jenkins_api_client/version.rb",
40
+ "lib/jenkins_api_client/view.rb",
41
+ "scripts/login_with_irb.rb",
42
+ "spec/func_tests/client_spec.rb",
43
+ "spec/func_tests/job_spec.rb",
44
+ "spec/func_tests/node_spec.rb",
45
+ "spec/func_tests/spec_helper.rb",
46
+ "spec/func_tests/system_spec.rb",
47
+ "spec/func_tests/view_spec.rb",
48
+ "spec/unit_tests/client_spec.rb",
49
+ "spec/unit_tests/fixtures/files/computer_sample.xml",
50
+ "spec/unit_tests/fixtures/files/job_sample.xml",
51
+ "spec/unit_tests/job_spec.rb",
52
+ "spec/unit_tests/node_spec.rb",
53
+ "spec/unit_tests/spec_helper.rb",
54
+ "spec/unit_tests/system_spec.rb",
55
+ "spec/unit_tests/view_spec.rb"
56
+ ]
57
+ s.homepage = "https://github.com/arangamani/jenkins_api_client"
58
+ s.require_paths = ["lib"]
59
+ s.rubygems_version = "1.8.24"
60
+ s.summary = "Jenkins JSON API Client"
61
+
62
+ if s.respond_to? :specification_version then
63
+ s.specification_version = 3
64
+
65
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
+ s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
67
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.2.8"])
68
+ s.add_runtime_dependency(%q<thor>, [">= 0.16.0"])
69
+ s.add_runtime_dependency(%q<json>, [">= 0"])
70
+ s.add_runtime_dependency(%q<terminal-table>, [">= 1.4.0"])
71
+ s.add_runtime_dependency(%q<builder>, ["~> 3.1.3"])
72
+ s.add_development_dependency(%q<bundler>, [">= 1.0"])
73
+ s.add_development_dependency(%q<jeweler>, [">= 1.6.4"])
74
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
75
+ s.add_development_dependency(%q<rspec>, [">= 0"])
76
+ else
77
+ s.add_dependency(%q<nokogiri>, [">= 0"])
78
+ s.add_dependency(%q<activesupport>, ["~> 3.2.8"])
79
+ s.add_dependency(%q<thor>, [">= 0.16.0"])
80
+ s.add_dependency(%q<json>, [">= 0"])
81
+ s.add_dependency(%q<terminal-table>, [">= 1.4.0"])
82
+ s.add_dependency(%q<builder>, ["~> 3.1.3"])
83
+ s.add_dependency(%q<bundler>, [">= 1.0"])
84
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
85
+ s.add_dependency(%q<simplecov>, [">= 0"])
86
+ s.add_dependency(%q<rspec>, [">= 0"])
87
+ end
88
+ else
89
+ s.add_dependency(%q<nokogiri>, [">= 0"])
90
+ s.add_dependency(%q<activesupport>, ["~> 3.2.8"])
91
+ s.add_dependency(%q<thor>, [">= 0.16.0"])
92
+ s.add_dependency(%q<json>, [">= 0"])
93
+ s.add_dependency(%q<terminal-table>, [">= 1.4.0"])
94
+ s.add_dependency(%q<builder>, ["~> 3.1.3"])
95
+ s.add_dependency(%q<bundler>, [">= 1.0"])
96
+ s.add_dependency(%q<jeweler>, [">= 1.6.4"])
97
+ s.add_dependency(%q<simplecov>, [">= 0"])
98
+ s.add_dependency(%q<rspec>, [">= 0"])
99
+ end
100
+ end
101
+
@@ -24,7 +24,7 @@ module JenkinsApi
24
24
  class Client
25
25
  MAJOR = 0
26
26
  MINOR = 7
27
- TINY = 2
27
+ TINY = 3
28
28
  PRE = nil
29
29
  VERSION = [MAJOR, MINOR, TINY, PRE].compact.join('.')
30
30
  end
@@ -44,7 +44,7 @@ module JenkinsApi
44
44
  #
45
45
  def create(view_name)
46
46
  post_msg = "/createView?name=#{view_name}&"
47
- post_msg << "mode=hudson.model.ListView&json={\"name\":\"#{view_name}}"
47
+ post_msg << "mode=hudson.model.ListView&json={\"name\":\"#{view_name}"
48
48
  post_msg << "\",\"mode\":\"hudson.model.ListView\"}"
49
49
  @client.api_post_request(post_msg)
50
50
  end
@@ -8,7 +8,9 @@ require 'yaml'
8
8
  require 'irb'
9
9
 
10
10
  begin
11
- @client = JenkinsApi::Client.new(YAML.load_file(File.expand_path('~/.jenkins_api_client/login.yml', __FILE__)))
11
+ @client = JenkinsApi::Client.new(YAML.load_file(File.expand_path(
12
+ '~/.jenkins_api_client/spec.yml', __FILE__))
13
+ )
12
14
  puts "logged-in to the Jenkins API, use the '@client' variable to use the client"
13
15
  end
14
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-02 00:00:00.000000000 Z
12
+ date: 2013-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -193,6 +193,7 @@ files:
193
193
  - Rakefile
194
194
  - bin/jenkinscli
195
195
  - config/login.yml.example
196
+ - jenkins_api_client.gemspec
196
197
  - lib/jenkins_api_client.rb
197
198
  - lib/jenkins_api_client/build_queue.rb
198
199
  - lib/jenkins_api_client/cli/base.rb