bcl 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ module BCL
57
57
  end
58
58
 
59
59
  def default_yaml
60
- settings = { :server => { :url => "bcl7.development.nrel.gov", :admin_user => { :username => "ENTER_BCL_USERNAME", :password => "ENTER_BCL_PASSWORD"} } }
60
+ settings = { :server => { :url => "http://bcl7.development.nrel.gov", :admin_user => { :username => "ENTER_BCL_USERNAME", :password => "ENTER_BCL_PASSWORD"} } }
61
61
 
62
62
  settings
63
63
  end
@@ -70,7 +70,7 @@ module BCL
70
70
  end
71
71
 
72
72
  data = {"username" => username, "password" => password}
73
- res = RestClient.post "http://#{@config[:server][:url]}/api/user/login", data.to_json, :content_type => :json, :accept => :json
73
+ res = RestClient.post "#{@config[:server][:url]}/api/user/login", data.to_json, :content_type => :json, :accept => :json
74
74
 
75
75
  if res.code == 200
76
76
  #pull out the session key
@@ -113,7 +113,7 @@ module BCL
113
113
  }
114
114
  }
115
115
 
116
- res = RestClient.post "http://#{@config[:server][:url]}/api/content", @data.to_json, :content_type => :json, :cookies => @session, :accept => :json
116
+ res = RestClient.post "#{@config[:server][:url]}/api/content", @data.to_json, :content_type => :json, :cookies => @session, :accept => :json
117
117
 
118
118
  if res.code == 200
119
119
  res_j = JSON.parse(res.body)
@@ -164,7 +164,7 @@ module BCL
164
164
 
165
165
  # Simple method to search bcl and return the result as an XML object
166
166
  def search(search_str)
167
- full_url = "http://#{@config[:server][:url]}/api/search/#{search_str}&api_version=#{@api_version}"
167
+ full_url = "#{@config[:server][:url]}/api/search/#{search_str}&api_version=#{@api_version}"
168
168
  res = RestClient.get "#{full_url}"
169
169
  xml = LibXML::XML::Document.string(res.body)
170
170
 
data/lib/bcl/version.rb CHANGED
@@ -18,5 +18,5 @@
18
18
  ######################################################################
19
19
 
20
20
  module BCL
21
- VERSION = "0.2.2"
21
+ VERSION = "0.2.3"
22
22
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcl
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Macumber
@@ -36,7 +36,7 @@ dependencies:
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
- name: libxml-ruby
39
+ name: builder
40
40
  prerelease: false
41
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
42
  none: false
@@ -50,7 +50,7 @@ dependencies:
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- name: builder
53
+ name: zliby
54
54
  prerelease: false
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
56
  none: false
@@ -64,7 +64,7 @@ dependencies:
64
64
  type: :runtime
65
65
  version_requirements: *id003
66
66
  - !ruby/object:Gem::Dependency
67
- name: zliby
67
+ name: archive-tar-minitar
68
68
  prerelease: false
69
69
  requirement: &id004 !ruby/object:Gem::Requirement
70
70
  none: false
@@ -78,7 +78,7 @@ dependencies:
78
78
  type: :runtime
79
79
  version_requirements: *id004
80
80
  - !ruby/object:Gem::Dependency
81
- name: archive-tar-minitar
81
+ name: mongo
82
82
  prerelease: false
83
83
  requirement: &id005 !ruby/object:Gem::Requirement
84
84
  none: false
@@ -92,7 +92,7 @@ dependencies:
92
92
  type: :runtime
93
93
  version_requirements: *id005
94
94
  - !ruby/object:Gem::Dependency
95
- name: mongo
95
+ name: json_pure
96
96
  prerelease: false
97
97
  requirement: &id006 !ruby/object:Gem::Requirement
98
98
  none: false
@@ -106,7 +106,7 @@ dependencies:
106
106
  type: :runtime
107
107
  version_requirements: *id006
108
108
  - !ruby/object:Gem::Dependency
109
- name: json_pure
109
+ name: rest-client
110
110
  prerelease: false
111
111
  requirement: &id007 !ruby/object:Gem::Requirement
112
112
  none: false
@@ -119,20 +119,6 @@ dependencies:
119
119
  version: "0"
120
120
  type: :runtime
121
121
  version_requirements: *id007
122
- - !ruby/object:Gem::Dependency
123
- name: rest-client
124
- prerelease: false
125
- requirement: &id008 !ruby/object:Gem::Requirement
126
- none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
- version: "0"
134
- type: :runtime
135
- version_requirements: *id008
136
122
  description: This gem contains helper methods for generating the Component XML file needed to upload files to the Building Component Library. It also contains the classes needed for logging in via the api and uploading generating components
137
123
  email: Nicholas.Long@nrel.gov
138
124
  executables: []