getulio 0.1.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.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.rspec +1 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +67 -0
- data/LICENSE.txt +20 -0
- data/README.md +27 -0
- data/Rakefile +51 -0
- data/getulio.gemspec +64 -0
- data/lib/getulio/timesheet.rb +36 -0
- data/lib/getulio/timesheet_day.rb +38 -0
- data/lib/getulio/version.rb +9 -0
- data/lib/getulio.rb +3 -0
- data/spec/getulio/timesheet_day_spec.rb +98 -0
- data/spec/getulio/timesheet_spec.rb +34 -0
- data/spec/getulio_spec.rb +5 -0
- data/spec/spec_helper.rb +13 -0
- metadata +117 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 104ad665529abcfc494486cc20cb6a15657679c1
|
4
|
+
data.tar.gz: 12d7228c705a29be5bce6ee23b2d14bcd083bffa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ac6f770c47afdfe56c11b96c390cce91e0fe56458c07fa5fa53ef5bac3471b61a6a3ae8153a162c4282a64bccb6b06584ff7af5ea4848a27b5dfaaec0b1448fb
|
7
|
+
data.tar.gz: ddacabf613b08b08b8809546a995b18e11f8dd1752dd6b7175ba4e157b9e8632613005275326b5697fbd7878111a14e76387b077047c5eeba61eb5bd0824ce01
|
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.3.5)
|
5
|
+
builder (3.2.2)
|
6
|
+
chronic (0.9.1)
|
7
|
+
delorean (2.1.0)
|
8
|
+
chronic
|
9
|
+
diff-lcs (1.1.3)
|
10
|
+
faraday (0.8.8)
|
11
|
+
multipart-post (~> 1.2.0)
|
12
|
+
git (1.2.5)
|
13
|
+
github_api (0.10.1)
|
14
|
+
addressable
|
15
|
+
faraday (~> 0.8.1)
|
16
|
+
hashie (>= 1.2)
|
17
|
+
multi_json (~> 1.4)
|
18
|
+
nokogiri (~> 1.5.2)
|
19
|
+
oauth2
|
20
|
+
hashie (2.0.5)
|
21
|
+
highline (1.6.19)
|
22
|
+
httpauth (0.2.0)
|
23
|
+
jeweler (1.8.6)
|
24
|
+
builder
|
25
|
+
bundler (~> 1.0)
|
26
|
+
git (>= 1.2.5)
|
27
|
+
github_api (= 0.10.1)
|
28
|
+
highline (>= 1.6.15)
|
29
|
+
nokogiri (= 1.5.10)
|
30
|
+
rake
|
31
|
+
rdoc
|
32
|
+
json (1.8.0)
|
33
|
+
jwt (0.1.8)
|
34
|
+
multi_json (>= 1.5)
|
35
|
+
multi_json (1.7.8)
|
36
|
+
multi_xml (0.5.4)
|
37
|
+
multipart-post (1.2.0)
|
38
|
+
nokogiri (1.5.10)
|
39
|
+
oauth2 (0.9.2)
|
40
|
+
faraday (~> 0.8)
|
41
|
+
httpauth (~> 0.2)
|
42
|
+
jwt (~> 0.1.4)
|
43
|
+
multi_json (~> 1.0)
|
44
|
+
multi_xml (~> 0.5)
|
45
|
+
rack (~> 1.2)
|
46
|
+
rack (1.5.2)
|
47
|
+
rake (10.1.0)
|
48
|
+
rdoc (3.12.2)
|
49
|
+
json (~> 1.4)
|
50
|
+
rspec (2.8.0)
|
51
|
+
rspec-core (~> 2.8.0)
|
52
|
+
rspec-expectations (~> 2.8.0)
|
53
|
+
rspec-mocks (~> 2.8.0)
|
54
|
+
rspec-core (2.8.0)
|
55
|
+
rspec-expectations (2.8.0)
|
56
|
+
diff-lcs (~> 1.1.2)
|
57
|
+
rspec-mocks (2.8.0)
|
58
|
+
|
59
|
+
PLATFORMS
|
60
|
+
ruby
|
61
|
+
|
62
|
+
DEPENDENCIES
|
63
|
+
bundler
|
64
|
+
delorean
|
65
|
+
jeweler (~> 1.8.4)
|
66
|
+
rdoc (~> 3.12)
|
67
|
+
rspec (~> 2.8.0)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2013 João Hornburg
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Getúlio
|
2
|
+
|
3
|
+
This gem generates a random working timesheet for every day of the month until today. It is hardcoded for brazilins working time of 44 hours per week. Currently there is no support for flexible time, so every day sums 8 hours and 48 minutes.
|
4
|
+
|
5
|
+
## How to use this gem
|
6
|
+
|
7
|
+
Just call `Getulio::Timesheet.for_current_month`. This will return a Getulio::Timesheet. To get an array of the days, call `Getulio::Timesheet.for_current_month.days`.
|
8
|
+
|
9
|
+
## Support
|
10
|
+
|
11
|
+
If you have any questions or suggestions please contact me at twitter (twitter.com/joaohornburg).
|
12
|
+
|
13
|
+
## Contributing to Getúlio
|
14
|
+
|
15
|
+
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
16
|
+
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
17
|
+
* Fork the project.
|
18
|
+
* Start a feature/bugfix branch.
|
19
|
+
* Commit and push until you are happy with your contribution.
|
20
|
+
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
21
|
+
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
22
|
+
|
23
|
+
## Copyright
|
24
|
+
|
25
|
+
Copyright (c) 2013 João Hornburg. See LICENSE.txt for
|
26
|
+
further details.
|
27
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
require './lib/getulio/version.rb'
|
6
|
+
begin
|
7
|
+
Bundler.setup(:default, :development)
|
8
|
+
rescue Bundler::BundlerError => e
|
9
|
+
$stderr.puts e.message
|
10
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
11
|
+
exit e.status_code
|
12
|
+
end
|
13
|
+
require 'rake'
|
14
|
+
|
15
|
+
require 'jeweler'
|
16
|
+
Jeweler::Tasks.new do |gem|
|
17
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
18
|
+
gem.name = "getulio"
|
19
|
+
gem.homepage = "http://github.com/joaohornburg/getulio"
|
20
|
+
gem.license = "MIT"
|
21
|
+
gem.summary = "generate random timesheets for brazilian workers (according to CLT)"
|
22
|
+
gem.description = "generate random timesheets for brazilian workers (according to CLT)"
|
23
|
+
gem.email = "joao.hornburg@gmail.com"
|
24
|
+
gem.authors = ["João Hornburg"]
|
25
|
+
gem.version = Getulio::Version::STRING
|
26
|
+
# dependencies defined in Gemfile
|
27
|
+
end
|
28
|
+
Jeweler::RubygemsDotOrgTasks.new
|
29
|
+
|
30
|
+
require 'rspec/core'
|
31
|
+
require 'rspec/core/rake_task'
|
32
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
33
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
34
|
+
end
|
35
|
+
|
36
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
37
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
38
|
+
spec.rcov = false
|
39
|
+
end
|
40
|
+
|
41
|
+
task :default => :spec
|
42
|
+
|
43
|
+
require 'rdoc/task'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "getulio #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
data/getulio.gemspec
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "getulio"
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Joa\u{303}o Hornburg"]
|
12
|
+
s.date = "2013-08-04"
|
13
|
+
s.description = "generate random timesheets for brazilian workers (according to CLT)"
|
14
|
+
s.email = "joao.hornburg@gmail.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"getulio.gemspec",
|
28
|
+
"lib/getulio.rb",
|
29
|
+
"lib/getulio/timesheet.rb",
|
30
|
+
"lib/getulio/timesheet_day.rb",
|
31
|
+
"lib/getulio/version.rb",
|
32
|
+
"spec/getulio/timesheet_day_spec.rb",
|
33
|
+
"spec/getulio/timesheet_spec.rb",
|
34
|
+
"spec/getulio_spec.rb",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
37
|
+
s.homepage = "http://github.com/joaohornburg/getulio"
|
38
|
+
s.licenses = ["MIT"]
|
39
|
+
s.require_paths = ["lib"]
|
40
|
+
s.rubygems_version = "2.0.3"
|
41
|
+
s.summary = "generate random timesheets for brazilian workers (according to CLT)"
|
42
|
+
|
43
|
+
if s.respond_to? :specification_version then
|
44
|
+
s.specification_version = 4
|
45
|
+
|
46
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
48
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
49
|
+
s.add_development_dependency(%q<bundler>, [">= 0"])
|
50
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
51
|
+
else
|
52
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
53
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
54
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
55
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
56
|
+
end
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
59
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
60
|
+
s.add_dependency(%q<bundler>, [">= 0"])
|
61
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'getulio/timesheet_day'
|
2
|
+
|
3
|
+
class Getulio::Timesheet
|
4
|
+
|
5
|
+
def self.for_current_month
|
6
|
+
Getulio::Timesheet.new
|
7
|
+
end
|
8
|
+
|
9
|
+
def initialize
|
10
|
+
initialize_days
|
11
|
+
end
|
12
|
+
|
13
|
+
def days
|
14
|
+
@days
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def initialize_days
|
21
|
+
@days = []
|
22
|
+
date = beginning_of_month
|
23
|
+
days_until_today.times do
|
24
|
+
@days << Getulio::TimesheetDay.new(date)
|
25
|
+
date = date.next
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def days_until_today
|
30
|
+
(Date.today - beginning_of_month).numerator + 1
|
31
|
+
end
|
32
|
+
|
33
|
+
def beginning_of_month
|
34
|
+
Date.parse(Time.now.strftime("%Y-%m-01"))
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Getulio::TimesheetDay
|
2
|
+
|
3
|
+
TOTAL_WORKING_TIME_SECODS = 8*60*60 + 48*60
|
4
|
+
|
5
|
+
def initialize(date)
|
6
|
+
@date = date
|
7
|
+
end
|
8
|
+
|
9
|
+
def date
|
10
|
+
@date
|
11
|
+
end
|
12
|
+
|
13
|
+
def arrival
|
14
|
+
@arrival ||= random_time(7,10)
|
15
|
+
end
|
16
|
+
|
17
|
+
def begin_of_lunch
|
18
|
+
@begin_of_lunch ||= random_time(11,13)
|
19
|
+
end
|
20
|
+
|
21
|
+
def end_of_lunch
|
22
|
+
begin_of_lunch + 60*60
|
23
|
+
end
|
24
|
+
|
25
|
+
def departure
|
26
|
+
remaining_time = TOTAL_WORKING_TIME_SECODS - (begin_of_lunch - arrival)
|
27
|
+
end_of_lunch + remaining_time
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def random_time(from,to)
|
33
|
+
hour = rand(from..(to-1))
|
34
|
+
minutes = rand(0..59)
|
35
|
+
Time.new(@date.year, @date.month, @date.day, hour, minutes)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
data/lib/getulio.rb
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'getulio/timesheet_day'
|
3
|
+
|
4
|
+
describe Getulio::TimesheetDay do
|
5
|
+
|
6
|
+
def timesheet_day
|
7
|
+
Getulio::TimesheetDay.new(Date.parse("2013-08-04"))
|
8
|
+
end
|
9
|
+
|
10
|
+
it "has a date" do
|
11
|
+
timesheet_day.date.should eq Date.parse("2013-08-04")
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "#arrival" do
|
15
|
+
|
16
|
+
it "is a Time" do
|
17
|
+
timesheet_day.arrival.should be_a Time
|
18
|
+
end
|
19
|
+
|
20
|
+
it "is between 7:00 and 10:00" do
|
21
|
+
timesheet_day.arrival.hour.should >= 7
|
22
|
+
timesheet_day.arrival.hour.should < 10
|
23
|
+
end
|
24
|
+
|
25
|
+
it "creates default random arrivals" do
|
26
|
+
first_arrival = timesheet_day.arrival
|
27
|
+
second_arrival = timesheet_day.arrival
|
28
|
+
third_arrival = timesheet_day.arrival
|
29
|
+
first_arrival.should_not eq second_arrival
|
30
|
+
first_arrival.should_not eq third_arrival
|
31
|
+
second_arrival.should_not eq first_arrival
|
32
|
+
second_arrival.should_not eq third_arrival
|
33
|
+
end
|
34
|
+
|
35
|
+
it "is calculated only once per instance" do
|
36
|
+
tmsd = timesheet_day
|
37
|
+
arrival = tmsd.arrival
|
38
|
+
5.times do tmsd.arrival.should eq arrival end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
describe "#begin_of_lunch" do
|
44
|
+
|
45
|
+
it "is a Time" do
|
46
|
+
timesheet_day.begin_of_lunch.should be_a Time
|
47
|
+
end
|
48
|
+
|
49
|
+
it "is between 11:00 and 13:00" do
|
50
|
+
timesheet_day.begin_of_lunch.hour.should >= 11
|
51
|
+
timesheet_day.begin_of_lunch.hour.should < 13
|
52
|
+
end
|
53
|
+
|
54
|
+
it "creates default random begin_of_lunchs" do
|
55
|
+
first_begin_of_lunch = timesheet_day.begin_of_lunch
|
56
|
+
second_begin_of_lunch = timesheet_day.begin_of_lunch
|
57
|
+
third_begin_of_lunch = timesheet_day.begin_of_lunch
|
58
|
+
first_begin_of_lunch.should_not eq second_begin_of_lunch
|
59
|
+
first_begin_of_lunch.should_not eq third_begin_of_lunch
|
60
|
+
second_begin_of_lunch.should_not eq first_begin_of_lunch
|
61
|
+
second_begin_of_lunch.should_not eq third_begin_of_lunch
|
62
|
+
end
|
63
|
+
|
64
|
+
it "is calculated only once per instance" do
|
65
|
+
tmsd = timesheet_day
|
66
|
+
begin_of_lunch = tmsd.begin_of_lunch
|
67
|
+
5.times do tmsd.begin_of_lunch.should eq begin_of_lunch end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
describe "#end_of_lunch" do
|
73
|
+
|
74
|
+
it "is a Time" do
|
75
|
+
timesheet_day.begin_of_lunch.should be_a Time
|
76
|
+
end
|
77
|
+
|
78
|
+
it "is 1 hour after begin_of_lunch" do
|
79
|
+
Getulio::TimesheetDay.any_instance.stub(:begin_of_lunch).and_return(Time.new(2013,12,02,11,45))
|
80
|
+
timesheet_day.end_of_lunch.should eq Time.new(2013,12,02,12,45)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe "#departure" do
|
85
|
+
|
86
|
+
it "is a Time" do
|
87
|
+
timesheet_day.departure.should be_a Time
|
88
|
+
end
|
89
|
+
|
90
|
+
it "completes 8:48 of work for the given day" do
|
91
|
+
Getulio::TimesheetDay.any_instance.stub(:arrival).and_return(Time.new(2013,12,02,9,00))
|
92
|
+
Getulio::TimesheetDay.any_instance.stub(:begin_of_lunch).and_return(Time.new(2013,12,02,12,00))
|
93
|
+
timesheet_day.departure.should eq Time.new(2013,12,02,18,48)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
|
98
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'getulio/timesheet'
|
3
|
+
|
4
|
+
describe Getulio::Timesheet do
|
5
|
+
|
6
|
+
describe ".for_current_month" do
|
7
|
+
|
8
|
+
def collection_items_should_be_a(collection,type)
|
9
|
+
collection.each do |item|
|
10
|
+
item.should be_a type
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
it "returns a Timesheet" do
|
15
|
+
Getulio::Timesheet.for_current_month.should be_a Getulio::Timesheet
|
16
|
+
end
|
17
|
+
|
18
|
+
it "has TimesheetDays for every day from the begining of the month until now" do
|
19
|
+
Delorean.time_travel_to(Time.parse('2013-08-04'))
|
20
|
+
Getulio::Timesheet.for_current_month.days.length.should eq 4
|
21
|
+
Getulio::Timesheet.for_current_month.days[0].date.should eq Date.parse('2013-08-01')
|
22
|
+
Getulio::Timesheet.for_current_month.days[1].date.should eq Date.parse('2013-08-02')
|
23
|
+
Getulio::Timesheet.for_current_month.days[2].date.should eq Date.parse('2013-08-03')
|
24
|
+
Getulio::Timesheet.for_current_month.days[3].date.should eq Date.parse('2013-08-04')
|
25
|
+
collection_items_should_be_a(Getulio::Timesheet.for_current_month.days,Getulio::TimesheetDay)
|
26
|
+
Delorean.time_travel_to(Time.parse('2013-07-30'))
|
27
|
+
Getulio::Timesheet.for_current_month.days.length.should eq 30
|
28
|
+
collection_items_should_be_a(Getulio::Timesheet.for_current_month.days,Getulio::TimesheetDay)
|
29
|
+
Delorean.back_to_the_present
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'getulio'
|
5
|
+
require 'delorean'
|
6
|
+
|
7
|
+
# Requires supporting files with custom matchers and macros, etc,
|
8
|
+
# in ./support/ and its subdirectories.
|
9
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
|
13
|
+
end
|
metadata
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: getulio
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- João Hornburg
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-08-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rspec
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.8.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.8.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jeweler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.8.4
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.8.4
|
69
|
+
description: generate random timesheets for brazilian workers (according to CLT)
|
70
|
+
email: joao.hornburg@gmail.com
|
71
|
+
executables: []
|
72
|
+
extensions: []
|
73
|
+
extra_rdoc_files:
|
74
|
+
- LICENSE.txt
|
75
|
+
- README.md
|
76
|
+
files:
|
77
|
+
- .document
|
78
|
+
- .rspec
|
79
|
+
- Gemfile
|
80
|
+
- Gemfile.lock
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- getulio.gemspec
|
85
|
+
- lib/getulio.rb
|
86
|
+
- lib/getulio/timesheet.rb
|
87
|
+
- lib/getulio/timesheet_day.rb
|
88
|
+
- lib/getulio/version.rb
|
89
|
+
- spec/getulio/timesheet_day_spec.rb
|
90
|
+
- spec/getulio/timesheet_spec.rb
|
91
|
+
- spec/getulio_spec.rb
|
92
|
+
- spec/spec_helper.rb
|
93
|
+
homepage: http://github.com/joaohornburg/getulio
|
94
|
+
licenses:
|
95
|
+
- MIT
|
96
|
+
metadata: {}
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
requirements: []
|
112
|
+
rubyforge_project:
|
113
|
+
rubygems_version: 2.0.3
|
114
|
+
signing_key:
|
115
|
+
specification_version: 4
|
116
|
+
summary: generate random timesheets for brazilian workers (according to CLT)
|
117
|
+
test_files: []
|