Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 133 lines (118 sloc) 4.909 kb
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
1 # If you're working on more than one datamapper gem at a time, then it's
2 # recommended to create a local Gemfile and use this instead of the git
3 # sources. This will make sure that you are developing against your
4 # other local datamapper sources that you currently work on. Gemfile.local
5 # will behave identically to the standard Gemfile apart from the fact that
6 # it fetches the datamapper gems from local paths. This means that you can
7 # use the same environment variables, like ADAPTER(S) or PLUGIN(S) when
8 # running
9 # bundle commands. Gemfile.local is added to .gitignore, so you don't need
10 # to worry about accidentally checking local development paths into git.
11 # In order to create a local Gemfile, all you need to do is run:
12 #
13 # bundle exec rake local_gemfile
14 #
15 # This will give you a Gemfile.local file that points to your local clones
16 # of the various datamapper gems. It's assumed that all datamapper repo
17 # clones reside in the same directory. You can use the Gemfile.local like
18 # so for running any bundle command:
19 #
20 # BUNDLE_GEMFILE=Gemfile.local bundle foo
21 #
22 # You can also specify which adapter(s) should be part of the bundle by
23 # setting an environment variable. This of course also works when using the
24 # Gemfile.local
25 #
26 # bundle foo # dm-sqlite-adapter
3e9baa6 Postmodern Removed the runtime group.
authored
27 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
28 # ADAPTER=mysql bundle foo # dm-mysql-adapter
3e9baa6 Postmodern Removed the runtime group.
authored
29 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
30 # ADAPTERS=sqlite,mysql bundle foo # dm-sqlite-adapter, dm-mysql-adapter
3e9baa6 Postmodern Removed the runtime group.
authored
31 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
32 # Of course you can also use the ADAPTER(S) variable when using the
33 # Gemfile.local and running specs against selected adapters.
3e9baa6 Postmodern Removed the runtime group.
authored
34 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
35 # For easily working with adapters supported on your machine, it's
36 # recommended that you first install all adapters that you are planning to
37 # use or work on by doing something like
3e9baa6 Postmodern Removed the runtime group.
authored
38 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
39 # ADAPTERS=sqlite,mysql,postgres bundle install
3e9baa6 Postmodern Removed the runtime group.
authored
40 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
41 # This will clone the various repositories and make them available to
42 # bundler. Once you have them installed you can easily switch between
43 # adapters for the various development tasks. Running something like
3e9baa6 Postmodern Removed the runtime group.
authored
44 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
45 # ADAPTER=mysql bundle exec rake spec
3e9baa6 Postmodern Removed the runtime group.
authored
46 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
47 # will make sure that the dm-mysql-adapter is part of the bundle, and will
48 # be used when running the specs.
3e9baa6 Postmodern Removed the runtime group.
authored
49 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
50 # You can also specify which plugin(s) should be part of the bundle by
51 # setting an environment variable. This also works when using the
52 # Gemfile.local
3e9baa6 Postmodern Removed the runtime group.
authored
53 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
54 # bundle foo # dm-migrations
3e9baa6 Postmodern Removed the runtime group.
authored
55 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
56 # PLUGINS=dm-validations bundle foo # dm-migrations,
57 # # dm-validations
3e9baa6 Postmodern Removed the runtime group.
authored
58 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
59 # PLUGINS=dm-validations,dm-types bundle foo # dm-migrations,
60 # # dm-validations,
61 # # dm-types
3e9baa6 Postmodern Removed the runtime group.
authored
62 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
63 # Of course you can combine the PLUGIN(S) and ADAPTER(S) env vars to run
64 # specs for certain adapter/plugin combinations.
3e9baa6 Postmodern Removed the runtime group.
authored
65 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
66 # Finally, to speed up running specs and other tasks, it's recommended to
67 # run
3e9baa6 Postmodern Removed the runtime group.
authored
68 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
69 # bundle lock
3e9baa6 Postmodern Removed the runtime group.
authored
70 #
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
71 # after running 'bundle install' for the first time. This will make
72 # 'bundle exec' run a lot faster compared to the unlocked version. With an
73 # unlocked bundle you would typically just run 'bundle install' from time
74 # to time to fetch the latest sources from upstream. When you locked your
75 # bundle, you need to run
76 #
77 # bundle install --relock
78 #
79 # to make sure to fetch the latest updates and then lock the bundle again.
80 # Gemfile.lock is added to the .gitignore file, so you don't need to worry
81 # about accidentally checking it into version control.
82
83 source :rubygems
84
85 DATAMAPPER = 'http://github.com/datamapper'
d3fa4d7 Postmodern Relax DM Version to ~> 1.0.
authored
86 DM_VERSION = '~> 1.0'
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
87 DO_VERSION = '~> 0.10.2'
88 DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
ea950bf Postmodern Initial commit.
authored
89
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
90 gem 'dm-core', DM_VERSION, :git => "#{DATAMAPPER}/dm-core.git"
3e9baa6 Postmodern Removed the runtime group.
authored
91
ea950bf Postmodern Initial commit.
authored
92 group :development do
4ff317f Postmodern Bundle rake ~> 0.8.
authored
93 gem 'rake', '~> 0.8'
cbc1dea Postmodern Use rubygems-tasks ~> 0.1.
authored
94 gem 'rubygems-tasks', '~> 0.1'
95 gem 'rspec', '~> 2.4'
ea950bf Postmodern Initial commit.
authored
96
1b4b16a Postmodern Relax versions.
authored
97 gem 'kramdown', '~> 0.12'
4ff317f Postmodern Bundle rake ~> 0.8.
authored
98 gem 'yard', '~> 0.6'
ea950bf Postmodern Initial commit.
authored
99 end
100
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
101 group :datamapper do
102 # We need this because we want to pin these dependencies to their git
103 # master sources
104
79640da Postmodern Updated the Gemfile dependencies.
authored
105 adapters = ENV['ADAPTER'] || ENV['ADAPTERS']
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
106 adapters = adapters.to_s.tr(',', ' ').split.uniq - %w[ in_memory ]
79640da Postmodern Updated the Gemfile dependencies.
authored
107
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
108 if (do_adapters = DM_DO_ADAPTERS & adapters).any?
109 options = {}
110 options[:git] = "#{DATAMAPPER}/do.git" if ENV['DO_GIT'] == 'true'
79640da Postmodern Updated the Gemfile dependencies.
authored
111
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
112 gem 'data_objects', DO_VERSION, options.dup
79640da Postmodern Updated the Gemfile dependencies.
authored
113
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
114 do_adapters.each do |adapter|
115 adapter = 'sqlite3' if adapter == 'sqlite'
116 gem "do_#{adapter}", DO_VERSION, options.dup
79640da Postmodern Updated the Gemfile dependencies.
authored
117 end
118
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
119 gem 'dm-do-adapter', DM_VERSION, :git => "#{DATAMAPPER}/dm-do-adapter.git"
120 end
79640da Postmodern Updated the Gemfile dependencies.
authored
121
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
122 adapters.each do |adapter|
123 gem "dm-#{adapter}-adapter", DM_VERSION, :git => "#{DATAMAPPER}/dm-#{adapter}-adapter.git"
79640da Postmodern Updated the Gemfile dependencies.
authored
124 end
125
126 plugins = ENV['PLUGINS'] || ENV['PLUGIN']
127 plugins = plugins.to_s.tr(',', ' ').split.push('dm-migrations').uniq
128
129 plugins.each do |plugin|
eeffbb6 Postmodern Use the standard DataMapper Gemfile.
authored
130 gem plugin, DM_VERSION, :git => "#{DATAMAPPER}/#{plugin}.git"
79640da Postmodern Updated the Gemfile dependencies.
authored
131 end
ea950bf Postmodern Initial commit.
authored
132 end
Something went wrong with that request. Please try again.