Gemfile in dm-deep_cloning-1.0.1 vs Gemfile in dm-deep_cloning-1.0.2
- old
+ new
@@ -12,23 +12,23 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-SOURCE = ENV.fetch('SOURCE', :git).to_sym
+SOURCE = ENV.fetch('SOURCE', :rubygems).to_sym
DM_VERSION = '~> 1.2.0'
DO_VERSION = '~> 0.10.6'
DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
def dm(module_name)
- if SOURCE == :rubygems
- gem "dm-module_name", DM_VERSION
+ if SOURCE == :git
+ gem "dm-#{module_name}", DM_VERSION, :git => "http://github.com/datamapper/dm-#{module_name}.git", :branch => ENV.fetch('BRANCH', 'master')
elsif SOURCE == :path
gem "dm-#{module_name}", DM_VERSION, :path => Pathname(__FILE__).dirname.parent
else
- gem "dm-#{module_name}", DM_VERSION, :git => "http://github.com/datamapper/dm-#{module_name}.git", :branch => ENV.fetch('BRANCH', 'master')
+ gem "dm-#{module_name}", DM_VERSION
end
end
source 'http://rubygems.org'