dm-salesforce-adapter 1.0.2 → 1.0.3
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/Rakefile +13 -57
- metadata +7 -7
data/Rakefile
CHANGED
@@ -1,65 +1,21 @@
|
|
1
|
-
require 'rubygems
|
2
|
-
require 'rubygems/specification'
|
3
|
-
require 'date'
|
4
|
-
require 'pp'
|
5
|
-
require 'tmpdir'
|
1
|
+
require 'rubygems'
|
6
2
|
|
7
|
-
require 'bundler
|
3
|
+
require 'bundler'
|
4
|
+
Bundler.require(:default, :test)
|
8
5
|
|
9
|
-
Bundler.require
|
10
|
-
|
11
|
-
task :default => 'spec'
|
12
6
|
require 'spec'
|
13
7
|
require 'spec/rake/spectask'
|
8
|
+
|
14
9
|
desc "Run specs"
|
15
10
|
Spec::Rake::SpecTask.new(:spec) do |t|
|
16
|
-
t.
|
17
|
-
t.spec_opts
|
18
|
-
|
19
|
-
|
20
|
-
t.
|
21
|
-
t.
|
22
|
-
t.rcov_opts
|
11
|
+
t.spec_files = [ "spec/spec_helper.rb"] + Dir["spec/**/*_spec.rb" ]
|
12
|
+
t.spec_opts += [ "-fs", "--color", "--loadby", "random" ]
|
13
|
+
|
14
|
+
# Disable rcov for now. Weird duplicate-include with spec_helper.
|
15
|
+
# t.rcov = ENV.has_key?('NO_RCOV') ? ENV['NO_RCOV'] != 'true' : true
|
16
|
+
t.rcov = false
|
17
|
+
t.rcov_opts += [ '--exclude', '~/.salesforce,gems,vendor,/var/folders,spec,config,tmp' ]
|
18
|
+
t.rcov_opts += [ '--text-summary', '--sort', 'coverage', '--sort-reverse' ]
|
23
19
|
end
|
24
20
|
|
25
|
-
|
26
|
-
task :release => :repackage do
|
27
|
-
version = SalesforceAdapter::VERSION
|
28
|
-
puts "Releasing #{version}"
|
29
|
-
|
30
|
-
`git show-ref tags/v#{version}`
|
31
|
-
unless $?.success?
|
32
|
-
abort "There is no tag for v#{version}"
|
33
|
-
end
|
34
|
-
|
35
|
-
`git show-ref heads/releasing`
|
36
|
-
if $?.success?
|
37
|
-
abort "Remove the releasing branch, we need it!"
|
38
|
-
end
|
39
|
-
|
40
|
-
puts "Checking out to the releasing branch as the tag"
|
41
|
-
system("git", "checkout", "-b", "releasing", "tags/v#{version}")
|
42
|
-
|
43
|
-
puts "Reseting back to master"
|
44
|
-
system("git", "checkout", "master")
|
45
|
-
system("git", "branch", "-d", "releasing")
|
46
|
-
|
47
|
-
current = @spec.version.to_s + ".0"
|
48
|
-
next_version = Gem::Version.new(current).bump
|
49
|
-
|
50
|
-
puts "Changing the version to #{next_version}."
|
51
|
-
|
52
|
-
version_file = File.dirname(__FILE__)+"/lib/#{GEM}/version.rb"
|
53
|
-
File.open(version_file, "w") do |f|
|
54
|
-
f.puts <<-EOT
|
55
|
-
module SalesforceAdapter
|
56
|
-
VERSION = "#{next_version}"
|
57
|
-
end
|
58
|
-
EOT
|
59
|
-
end
|
60
|
-
|
61
|
-
puts "Committing the version change"
|
62
|
-
system("git", "commit", version_file, "-m", "Next version: #{next_version}")
|
63
|
-
|
64
|
-
puts "Push the commit up! if you don't, you'll be hunted down"
|
65
|
-
end
|
21
|
+
task :default => 'spec'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-salesforce-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jordan Ritter
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-07-
|
21
|
+
date: 2011-07-12 00:00:00 -07:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -46,12 +46,12 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
hash:
|
49
|
+
hash: 59
|
50
50
|
segments:
|
51
51
|
- 0
|
52
52
|
- 10
|
53
|
-
-
|
54
|
-
version: 0.10.
|
53
|
+
- 6
|
54
|
+
version: 0.10.6
|
55
55
|
type: :runtime
|
56
56
|
version_requirements: *id002
|
57
57
|
- !ruby/object:Gem::Dependency
|