moodle_rb 0.0.5 → 1.0.0

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.
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ cache:
5
+ - bundler
6
+ - apt
7
+ bundler_args: -j4 --quiet
8
+ script:
9
+ - bundle exec rspec
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # MoodleRb
2
2
  A Ruby Client for the Moodle REST API.
3
3
 
4
+ https://docs.moodle.org/dev/Web_services#Developer_documentation
5
+
4
6
  ## Usage
5
7
 
6
8
  Initialise a MoodleRb client
@@ -6,8 +6,8 @@ module MoodleRb
6
6
  @response_body = response_body
7
7
 
8
8
  if response_body.is_a?(Hash)
9
- @code = response_body["errorcode"]
10
- @message = response_body["message"]
9
+ @code = response_body['errorcode']
10
+ @message = response_body['message']
11
11
  else
12
12
  @message = response_body.to_s
13
13
  end
@@ -1,5 +1,5 @@
1
1
  module MoodleRb
2
- VERSION = '0.0.5' unless defined?(self::VERSION)
2
+ VERSION = '1.0.0' unless defined?(self::VERSION)
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moodle_rb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 5
10
- version: 0.0.5
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Giffney
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2015-04-23 00:00:00 Z
18
+ date: 2015-06-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -134,6 +134,7 @@ extra_rdoc_files: []
134
134
 
135
135
  files:
136
136
  - .gitignore
137
+ - .travis.yml
137
138
  - Gemfile
138
139
  - LICENSE
139
140
  - README.md