mite-rb 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -1
- data/{CHANGES.txt → CHANGES.md} +20 -10
- data/Gemfile +4 -0
- data/LICENSE +1 -1
- data/{README.markdown → README.md} +7 -7
- data/Rakefile +6 -24
- data/lib/mite/version.rb +3 -0
- data/lib/mite-rb.rb +1 -1
- data/mite-rb.gemspec +16 -53
- metadata +42 -73
data/.gitignore
CHANGED
data/{CHANGES.txt → CHANGES.md}
RENAMED
@@ -1,43 +1,53 @@
|
|
1
|
-
|
1
|
+
## mite-rb Changelog
|
2
2
|
|
3
|
-
|
3
|
+
### 0.4.0 / 2012-12-31
|
4
|
+
|
5
|
+
* Default to https
|
6
|
+
* Removed jeweler release dependency; now using bundler
|
7
|
+
* Depends now on activeresource >= 2.3.14; fixed issue with Ruby 1.9
|
8
|
+
|
9
|
+
### 0.3.0
|
10
|
+
|
11
|
+
* Added User-Agent
|
12
|
+
|
13
|
+
### 0.2.4
|
4
14
|
|
5
15
|
* Added new resource Mite::TimeEntry::Bookmark (read only)
|
6
16
|
* Some cleanup.
|
7
17
|
|
8
|
-
|
18
|
+
### 0.2.3
|
9
19
|
|
10
20
|
* Fixed bug when using Project#name_with_customer on project without customer.
|
11
21
|
|
12
|
-
|
22
|
+
### 0.2.2
|
13
23
|
|
14
24
|
* Added Project#name_with_customer for best practice/convenience
|
15
25
|
|
16
|
-
|
26
|
+
### 0.2.1
|
17
27
|
|
18
28
|
* Added archived and active collection-methods to Customer, Project, Service and User
|
19
29
|
|
20
|
-
|
30
|
+
### 0.2.0
|
21
31
|
|
22
32
|
* Added singleton resources account and myself (current authenticated user)
|
23
33
|
* Removed depreciated undo method
|
24
34
|
* Do not require rubygems
|
25
35
|
* Added Method to validate the connection to mite
|
26
36
|
|
27
|
-
|
37
|
+
### 0.1.0
|
28
38
|
|
29
39
|
* Use absolute classes to prevent collision with other classes
|
30
40
|
|
31
|
-
|
41
|
+
### 0.0.3
|
32
42
|
|
33
43
|
* Fixed wrong domain name (old one for testing removed)
|
34
44
|
|
35
|
-
|
45
|
+
### 0.0.2
|
36
46
|
|
37
47
|
* Added tracker-resource and methods on time_entry
|
38
48
|
* Fixed tiny datetimebug
|
39
49
|
* Dependency of activeresource 2.3.2 and activesupport 2.3.2
|
40
50
|
|
41
|
-
|
51
|
+
### 0.0.1
|
42
52
|
|
43
53
|
* Initial Version
|
data/Gemfile
ADDED
data/LICENSE
CHANGED
@@ -4,11 +4,11 @@ The official ruby library for interacting with the [RESTful API](http://mite.yo.
|
|
4
4
|
|
5
5
|
## Install
|
6
6
|
|
7
|
-
Install the lib as a ruby gem
|
7
|
+
Install the lib as a ruby gem:
|
8
8
|
|
9
|
-
|
9
|
+
gem install mite-rb
|
10
10
|
|
11
|
-
mite-rb requires activeresource and activesupport in version 2.3.
|
11
|
+
mite-rb requires activeresource and activesupport in version 2.3.14 or above.
|
12
12
|
|
13
13
|
## Documentation
|
14
14
|
|
@@ -22,7 +22,7 @@ The first thing you need to set is the account name. This is the same as the we
|
|
22
22
|
|
23
23
|
Mite.account = 'demo'
|
24
24
|
|
25
|
-
Then, you should set the authentication. You can either use your mite.api key (
|
25
|
+
Then, you should set the authentication. You can either use your mite.api key (recommended) or your login credentials (email and password).
|
26
26
|
|
27
27
|
Mite.key = 'cdfeasdaabcdefgssaeabcdefg'
|
28
28
|
|
@@ -32,13 +32,13 @@ or
|
|
32
32
|
|
33
33
|
### User-Agent
|
34
34
|
|
35
|
-
mite-rb sets the User-Agent HTTP-header to 'mite-rb/0.
|
35
|
+
mite-rb sets the User-Agent HTTP-header to 'mite-rb/0.3.0' by default. You can (and should) customize it to a more specific one:
|
36
36
|
|
37
|
-
Mite.user_agent = 'my-
|
37
|
+
Mite.user_agent = 'my-mighty-mite-addon/1.2.3'
|
38
38
|
|
39
39
|
You can combine your custom string with the default one:
|
40
40
|
|
41
|
-
Mite.user_agent = "my-
|
41
|
+
Mite.user_agent = "my-mighty-mite-addon/1.2.3;#{Mite.user_agent}"
|
42
42
|
|
43
43
|
### Validate connection
|
44
44
|
|
data/Rakefile
CHANGED
@@ -1,25 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$gem_name = "mite-rb"
|
4
|
-
|
5
|
-
desc "Run specs"
|
6
|
-
task :spec do
|
7
|
-
sh "spec spec/* --format specdoc --color"
|
8
|
-
end
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
9
3
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
s.summary = "The official ruby library for interacting with the RESTful API of mite, a sleek time tracking webapp."
|
15
|
-
s.email = "sebastian@yo.lk"
|
16
|
-
s.homepage = "http://github.com/yolk/mite-rb"
|
17
|
-
s.description = "The official ruby library for interacting with the RESTful mite.api."
|
18
|
-
s.authors = ["Sebastian Munz"]
|
19
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
20
|
-
s.add_dependency(%q<activeresource>, [">= 2.3.2"])
|
21
|
-
end
|
22
|
-
Jeweler::GemcutterTasks.new
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
25
|
-
end
|
4
|
+
# require 'rspec/core/rake_task'
|
5
|
+
# RSpec::Core::RakeTask.new(:spec)
|
6
|
+
|
7
|
+
task :default => :spec
|
data/lib/mite/version.rb
ADDED
data/lib/mite-rb.rb
CHANGED
data/mite-rb.gemspec
CHANGED
@@ -1,61 +1,24 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "mite/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
6
|
+
s.name = "mite-rb"
|
7
|
+
s.version = Mite::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Sebastian Munz"]
|
10
|
+
s.email = ["sebastian@yo.lk"]
|
11
|
+
s.homepage = "https://github.com/yolk/mite-rb"
|
12
|
+
s.summary = %q{The official ruby library for interacting with the RESTful mite.api.}
|
13
13
|
s.description = %q{The official ruby library for interacting with the RESTful mite.api.}
|
14
|
-
s.email = %q{sebastian@yo.lk}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.markdown"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".gitignore",
|
21
|
-
"CHANGES.txt",
|
22
|
-
"LICENSE",
|
23
|
-
"README.markdown",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION.yml",
|
26
|
-
"lib/mite-rb.rb",
|
27
|
-
"lib/mite/account.rb",
|
28
|
-
"lib/mite/customer.rb",
|
29
|
-
"lib/mite/myself.rb",
|
30
|
-
"lib/mite/project.rb",
|
31
|
-
"lib/mite/service.rb",
|
32
|
-
"lib/mite/time_entry.rb",
|
33
|
-
"lib/mite/time_entry/bookmark.rb",
|
34
|
-
"lib/mite/time_entry_group.rb",
|
35
|
-
"lib/mite/tracker.rb",
|
36
|
-
"lib/mite/user.rb",
|
37
|
-
"mite-rb.gemspec"
|
38
|
-
]
|
39
|
-
s.homepage = %q{http://github.com/yolk/mite-rb}
|
40
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
41
|
-
s.require_paths = ["lib"]
|
42
|
-
s.rubygems_version = %q{1.3.6}
|
43
|
-
s.summary = %q{The official ruby library for interacting with the RESTful API of mite, a sleek time tracking webapp.}
|
44
14
|
|
45
|
-
|
46
|
-
|
47
|
-
|
15
|
+
s.rubyforge_project = "mite-rb"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
48
21
|
|
49
|
-
|
50
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2"])
|
51
|
-
s.add_runtime_dependency(%q<activeresource>, [">= 2.3.2"])
|
52
|
-
else
|
53
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
54
|
-
s.add_dependency(%q<activeresource>, [">= 2.3.2"])
|
55
|
-
end
|
56
|
-
else
|
57
|
-
s.add_dependency(%q<activesupport>, [">= 2.3.2"])
|
58
|
-
s.add_dependency(%q<activeresource>, [">= 2.3.2"])
|
59
|
-
end
|
22
|
+
s.add_runtime_dependency(%q<activeresource>, [">= 2.3.14"])
|
60
23
|
end
|
61
24
|
|
metadata
CHANGED
@@ -1,64 +1,39 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mite-rb
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
version: 0.3.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Sebastian Munz
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: activesupport
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 2
|
29
|
-
- 3
|
30
|
-
- 2
|
31
|
-
version: 2.3.2
|
32
|
-
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-01-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
35
15
|
name: activeresource
|
36
|
-
|
37
|
-
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 2
|
43
|
-
- 3
|
44
|
-
- 2
|
45
|
-
version: 2.3.2
|
16
|
+
requirement: &2159817620 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.3.14
|
46
22
|
type: :runtime
|
47
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2159817620
|
48
25
|
description: The official ruby library for interacting with the RESTful mite.api.
|
49
|
-
email:
|
26
|
+
email:
|
27
|
+
- sebastian@yo.lk
|
50
28
|
executables: []
|
51
|
-
|
52
29
|
extensions: []
|
53
|
-
|
54
|
-
|
55
|
-
- LICENSE
|
56
|
-
- README.markdown
|
57
|
-
files:
|
30
|
+
extra_rdoc_files: []
|
31
|
+
files:
|
58
32
|
- .gitignore
|
59
|
-
- CHANGES.
|
33
|
+
- CHANGES.md
|
34
|
+
- Gemfile
|
60
35
|
- LICENSE
|
61
|
-
- README.
|
36
|
+
- README.md
|
62
37
|
- Rakefile
|
63
38
|
- VERSION.yml
|
64
39
|
- lib/mite-rb.rb
|
@@ -72,36 +47,30 @@ files:
|
|
72
47
|
- lib/mite/time_entry_group.rb
|
73
48
|
- lib/mite/tracker.rb
|
74
49
|
- lib/mite/user.rb
|
50
|
+
- lib/mite/version.rb
|
75
51
|
- mite-rb.gemspec
|
76
|
-
|
77
|
-
homepage: http://github.com/yolk/mite-rb
|
52
|
+
homepage: https://github.com/yolk/mite-rb
|
78
53
|
licenses: []
|
79
|
-
|
80
54
|
post_install_message:
|
81
|
-
rdoc_options:
|
82
|
-
|
83
|
-
require_paths:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
84
57
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
- 0
|
98
|
-
version: "0"
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
none: false
|
60
|
+
requirements:
|
61
|
+
- - ! '>='
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0'
|
64
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
99
70
|
requirements: []
|
100
|
-
|
101
|
-
|
102
|
-
rubygems_version: 1.3.6
|
71
|
+
rubyforge_project: mite-rb
|
72
|
+
rubygems_version: 1.8.10
|
103
73
|
signing_key:
|
104
74
|
specification_version: 3
|
105
|
-
summary: The official ruby library for interacting with the RESTful
|
75
|
+
summary: The official ruby library for interacting with the RESTful mite.api.
|
106
76
|
test_files: []
|
107
|
-
|