domoscio_rails 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,11 @@ module DomoscioRails
27
27
  class Configuration
28
28
  attr_accessor :preproduction, :root_url,
29
29
  :client_id, :client_passphrase,
30
- :temp_dir
30
+ :temp_dir, :disabled
31
+
32
+ def disabled
33
+ @disabled || false
34
+ end
31
35
 
32
36
  def preproduction
33
37
  @preproduction || false
@@ -62,6 +66,7 @@ module DomoscioRails
62
66
  # Raises DomoscioRails::ResponseError if response code != 200.
63
67
  #
64
68
  def self.request(method, url, params={}, filters={}, headers = request_headers, before_request_proc = nil)
69
+ return false if @disabled
65
70
  uri = api_uri(url)
66
71
  uri.query = URI.encode_www_form(filters) unless filters.empty?
67
72
 
@@ -1,3 +1,3 @@
1
1
  module DomoscioRails
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,41 +1,37 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: domoscio_rails
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Benoit Praly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2015-03-24 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
14
16
  name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '3.2'
20
17
  type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '3.2'
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: "3.2"
24
+ version:
27
25
  description: Description of DomoscioRails.
28
- email:
26
+ email:
29
27
  - benoit.praly@domoscio.com
30
28
  executables: []
29
+
31
30
  extensions: []
31
+
32
32
  extra_rdoc_files: []
33
- files:
34
- - MIT-LICENSE
35
- - README.rdoc
36
- - Rakefile
37
- - lib/domoscio_rails.rb
38
- - lib/domoscio_rails.tbz
33
+
34
+ files:
39
35
  - lib/domoscio_rails/admin/company.rb
40
36
  - lib/domoscio_rails/admin/user.rb
41
37
  - lib/domoscio_rails/authorization_token.rb
@@ -51,29 +47,39 @@ files:
51
47
  - lib/domoscio_rails/student/student.rb
52
48
  - lib/domoscio_rails/utils/review_util.rb
53
49
  - lib/domoscio_rails/version.rb
50
+ - lib/domoscio_rails.rb
51
+ - lib/domoscio_rails.tbz
54
52
  - lib/tasks/domoscio_rails_tasks.rake
53
+ - MIT-LICENSE
54
+ - Rakefile
55
+ - README.rdoc
56
+ has_rdoc: true
55
57
  homepage: http://www.domoscio.com
56
- licenses:
58
+ licenses:
57
59
  - MIT
58
- metadata: {}
59
60
  post_install_message:
60
61
  rdoc_options: []
61
- require_paths:
62
+
63
+ require_paths:
62
64
  - lib
63
- required_ruby_version: !ruby/object:Gem::Requirement
64
- requirements:
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
65
67
  - - ">="
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- required_rubygems_version: !ruby/object:Gem::Requirement
69
- requirements:
68
+ - !ruby/object:Gem::Version
69
+ version: "0"
70
+ version:
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
70
73
  - - ">="
71
- - !ruby/object:Gem::Version
72
- version: '0'
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ version:
73
77
  requirements: []
78
+
74
79
  rubyforge_project:
75
- rubygems_version: 2.2.2
80
+ rubygems_version: 1.3.5
76
81
  signing_key:
77
- specification_version: 4
82
+ specification_version: 3
78
83
  summary: Summary of DomoscioRails.
79
84
  test_files: []
85
+
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 65d01b1ef129d85b1b7e2615132c8ef65efdf7a3
4
- data.tar.gz: 5eb5d38cd6338b59ee5f790a1d488f04c0a3748b
5
- SHA512:
6
- metadata.gz: e83136f53a319e68309da067fd70e77c4ed428b1eaef787d2b59950cee1f53c408aa09f94bf925fc5736fc4ec5ed1cc7f950f6158e68121d52eb828493908deb
7
- data.tar.gz: 92ed332c87b175017b0fd797fe288aad1939ea930ace75eb969381a1d037d7678df69cd475cfda18ea26121030649269aa9580301d9a4f301c4325b1a3d2cf01