bwapi 11.0.1.pre.607 → 11.0.1.pre.609

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTgyODQ4OWRmMmY0YzViMzQzNTczMTBlYmQ1NGEwY2UwZTYyOWM2Zg==
4
+ Njg3N2U4Yzg2MzgwNGQwMzQ3NmFhNjBjYzI3ZDM1ZTQ4MGE2NmY2OQ==
5
5
  data.tar.gz: !binary |-
6
- YmExNWViODY5NTMyMTcwMmUxZTFlMmEwNDc5N2E4ZWM1NDY4OWRlNQ==
6
+ YjI1ZDYxZThkZDEyNThhOTFjYmZiZWJlZDYyOWUzNjdjZGU0YTU0Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWU4YmExODc2ODI3OGFmNjgyYzk0OTAxZDczYjAyNWNlMjJiMWVjMTlkNzRi
10
- MWFhNDg2ZTlhZjEyMjdmMzlkMTA5N2ZmNmQxMmFmN2FmMWFiYTA4MzZiMTBi
11
- NmYxMmNkZWViOTZlM2U1ZDE2NDc4ODU5YmE5YWQ3ZjJjODJmNDM=
9
+ MDk0MWJhMTg4M2JmZTQ3N2RkZDkwYTc0NWI4YTJkZTIzNGI2YzFmNTZkNWM2
10
+ MmQ0YWI2NzZmMDlhODM3YTI5MTNjM2Y3NTNlOGE5ZmQ1MjE4ZGM3MWY3NzIz
11
+ ZTQ1ZGE2OTk0OTI0MDhlYTQwOTcxYTZkYTE0OTc2M2ViMmU2ZjM=
12
12
  data.tar.gz: !binary |-
13
- OTk5ZTFjOGIxMGYwY2E0MzAyNzlkYWE0YTE1MDE4NGI4Y2U0ODcxZjIxMzhl
14
- ZDBjMDZiNjEwOTg4YjFhZWIxZTI4NWU3ZTQ0NDRjNDFjODk3ZmQ2ZjE1ZDg2
15
- M2VlYTA5ZWI0NjQ1OWM1MjNjYzljN2I1ODNlZmQ2YWJkZTAzOGM=
13
+ NzlkNzBhMTM4YTMyNzA2NzM0YTQ2NmU4YmIxMGVjY2Y5NDQ3MzczZWY0Nzhj
14
+ ZjJiYWRjODNjNmVkOGQ2ZDkyZDllNTM1Nzc0ZTJmMmQ4N2Q3ZmRhNjI2OTc4
15
+ NzE3YTRlMjBmYzM0MTQ1ZjdhMGQwMmU3YTZlODFjODZjMjFkYTA=
@@ -5,6 +5,7 @@ require 'bwapi/client/admin/reseller'
5
5
  require 'bwapi/client/admin/search'
6
6
  require 'bwapi/client/admin/client'
7
7
  require 'bwapi/client/admin/pricing_upgrades'
8
+ require 'bwapi/client/admin/projects'
8
9
 
9
10
  module BWAPI
10
11
  class Client
@@ -42,6 +43,7 @@ module BWAPI
42
43
  include BWAPI::Client::Admin::Reseller
43
44
  include BWAPI::Client::Admin::Search
44
45
  include BWAPI::Client::Admin::PricingUpgrades
46
+ include BWAPI::Client::Admin::Projects
45
47
  end
46
48
  end
47
49
  end
@@ -0,0 +1,26 @@
1
+ module BWAPI
2
+ class Client
3
+ module Admin
4
+ # Become module for admin/projects endpoint
5
+ module Projects
6
+ # Lock an existing query in project
7
+ #
8
+ # @param project_id [Integer] Id of project
9
+ # @param query_id [Integer] Id of query
10
+ # @return [Hash] Locked query
11
+ def lock_query(project_id, query_id)
12
+ post "admin/projects/#{project_id}/queries/#{query_id}/lock"
13
+ end
14
+
15
+ # Unlock an existing query in project
16
+ #
17
+ # @param project_id [Integer] Id of project
18
+ # @param query_id [Integer] Id of query
19
+ # @return [Hash] Unlocked query
20
+ def unlock_query(project_id, query_id)
21
+ delete "admin/projects/#{project_id}/queries/#{query_id}/lock"
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.1.pre.607
4
+ version: 11.0.1.pre.609
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -152,6 +152,7 @@ files:
152
152
  - lib/bwapi/client/admin/clients/users/sharing.rb
153
153
  - lib/bwapi/client/admin/demographics.rb
154
154
  - lib/bwapi/client/admin/pricing_upgrades.rb
155
+ - lib/bwapi/client/admin/projects.rb
155
156
  - lib/bwapi/client/admin/reseller.rb
156
157
  - lib/bwapi/client/admin/search.rb
157
158
  - lib/bwapi/client/aggregates.rb