Skip to content

Instantly share code, notes, and snippets.

@solnic
Created October 13, 2011 09:20
Show Gist options
  • Select an option

  • Save solnic/1283824 to your computer and use it in GitHub Desktop.

Select an option

Save solnic/1283824 to your computer and use it in GitHub Desktop.

dm-active_model

Piotr Solnica - 2011-09-09T11:17:57-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-adjust

Piotr Solnica - 2011-09-09T11:18:24-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-aggregates

Piotr Solnica - 2011-09-12T04:22:39-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-09T11:18:44-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-ar-finders

Piotr Solnica - 2011-09-09T11:19:05-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-cli

Piotr Solnica - 2011-09-09T11:19:24-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-constraints

Piotr Solnica - 2011-09-20T03:57:25-07:00 - details

Merge pull request #14 from tillsc/patch-3

Oracle 10g support (all specs are green)

Till Schulte-Coerne - 2011-09-15T23:47:46-07:00 - details

Added constraint_type to foreign keys DDL script. Oracle 10g doesn't like "ON DELETE NO ACTION" (which isn't really important because it's the default).

Till Schulte-Coerne - 2011-09-13T01:55:47-07:00 - details

Merge branch 'master' of github.com:datamapper/dm-constraints into patch-2

Piotr Solnica - 2011-09-09T11:19:46-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-core

Piotr Solnica - 2011-09-20T09:26:12-07:00 - details

Regenerate gemspec

Piotr Solnica - 2011-09-20T09:25:53-07:00 - details

Merge branch 'release-1.2'

Piotr Solnica - 2011-09-20T05:10:21-07:00 - details

Regenerate gemspec for version 1.2.0.rc2

Piotr Solnica - 2011-09-20T05:02:04-07:00 - details

Regenerate gemspec for version 1.2.0.rc2

Piotr Solnica - 2011-09-14T02:38:29-07:00 - details

Fix validation of Decimal scale/precision options

Piotr Solnica - 2011-09-14T00:17:57-07:00 - details

Version bump to 1.2.0.rc2

Piotr Solnica - 2011-09-13T10:37:23-07:00 - details

OK grab git branch from ENV (git branch parsing did not work on our CI)

Piotr Solnica - 2011-09-13T10:16:26-07:00 - details

Use same branch in gemfile for DM gem deps

Piotr Solnica - 2011-09-13T09:10:34-07:00 - details

Merge branch 'release-1.2'

Conflicts:
	lib/dm-core/property/binary.rb

Piotr Solnica - 2011-09-13T09:06:50-07:00 - details

Fix Property#load specs

Piotr Solnica - 2011-09-13T08:42:49-07:00 - details

Merge pull request #141 from d11wtq/bugfix/binary-encoding2

Fix Binary property type to specify 'binary' encoding under >= 1.9

d11wtq - 2011-09-13T03:40:05-07:00 - details

Adjust to use unless value.nil? instead of if value

d11wtq - 2011-09-12T05:59:21-07:00 - details

Conditionally force encoding based on RUBY_VERSION and dup input values before encoding

d11wtq - 2011-09-10T08:32:15-07:00 - details

Fix issue with Binary properties being treated like normal Strings, which breaks dm-validations since it uses =~ /\S/ assuming valid UTF-8

Piotr Solnica - 2011-09-12T05:45:37-07:00 - details

Merge pull request #139 from solnic/property-improved

Property Improved

For more information read this: https://gist.github.com/784350

Piotr Solnica - 2011-09-12T05:22:34-07:00 - details

Add load_class/dump_class aliases

Piotr Solnica - 2011-09-12T04:49:19-07:00 - details

Set dump_as explicitly on all properties

Piotr Solnica - 2011-09-12T03:45:28-07:00 - details

Don't typecast to const if the value is nil

Piotr Solnica - 2011-09-12T02:56:01-07:00 - details

Add Boolean#value_loaded? so it works wit the primitive validator

Piotr Solnica - 2011-09-12T02:55:41-07:00 - details

Check property instance type instead of primitive

Piotr Solnica - 2011-09-12T01:54:03-07:00 - details

Turn on deprecation warnings

Piotr Solnica - 2011-09-12T01:51:07-07:00 - details

Regenerated gemspec

Piotr Solnica - 2011-09-12T01:47:43-07:00 - details

Use instance_of? in Object property load/dump methods

Piotr Solnica - 2011-09-12T01:44:05-07:00 - details

Don't coerce to string if the value is nil

Piotr Solnica - 2011-09-11T13:28:44-07:00 - details

Integrate with Virtus Coercion system (WIP)

Piotr Solnica - 2011-09-11T03:30:26-07:00 - details

Replace "primitive" with "dump_as" and add a new option "load_as" (WIP)

Piotr Solnica - 2011-09-11T01:19:21-07:00 - details

require virtus

Piotr Solnica - 2011-09-09T11:20:11-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-do-adapter

Piotr Solnica - 2011-09-12T02:02:52-07:00 - details

Use Property#dump_as instead of deprecated #primitive

Piotr Solnica - 2011-09-09T11:39:17-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-ferret-adapter

Piotr Solnica - 2011-09-09T11:20:37-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-list

Piotr Solnica - 2011-09-12T04:24:11-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-09T11:20:59-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-nested_set

Piotr Solnica - 2011-09-09T11:21:18-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-remixable

Piotr Solnica - 2011-09-09T11:21:40-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-searchable

Piotr Solnica - 2011-09-09T11:22:06-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-state_machine

Piotr Solnica - 2011-09-09T11:22:26-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-tree

Piotr Solnica - 2011-09-26T02:25:07-07:00 - details

Merge pull request #6 from mbj/master

Added method to query all children recursively

Markus Schirp - 2011-09-25T15:02:55-07:00 - details

Merge branch 'master' of git://github.com/datamapper/dm-is-tree

Piotr Solnica - 2011-09-09T11:22:46-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-is-versioned

Piotr Solnica - 2011-09-13T23:43:28-07:00 - details

Merge pull request #5 from agate/master

fixed versions query order problem

Piotr Solnica - 2011-09-13T23:38:52-07:00 - details

Revert "Merge pull request #3 from Asquera/attribute_set-fix"

This reverts commit a08745cb619b9def2b380c82137eacf312f348b4, reversing
changes made to 228098dbe48fab15e52fdbaf0d869ae35ccd79c0.

Piotr Solnica - 2011-09-13T23:18:26-07:00 - details

Merge pull request #3 from Asquera/attribute_set-fix

Versioning does not work on #attribute_set

Piotr Solnica - 2011-09-09T11:23:12-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-migrations

Piotr Solnica - 2011-10-09T07:33:00-07:00 - details

Merge pull request #33 from miegs3/master

Allowing bytea columns to migrate by ignoring length

Daniel Miegel - 2011-10-03T21:48:02-07:00 - details

Ignore the length property for bytea columns.

Piotr Solnica - 2011-09-14T02:01:26-07:00 - details

Merge pull request #13 from maxsum-corin/master

Wrong quotes in field_exists? for sqlserver

Jordan Ritter - 2011-09-13T07:19:04-07:00 - details

Merge remote-tracking branch 'origin/master' into custom_type_migration

Conflicts:

    lib/dm-migrations/adapters/dm-do-adapter.rb

        Resolved by taking master and re-adding property.class.superclass
        lookup.

Piotr Solnica - 2011-09-12T01:49:54-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-09T11:23:36-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

Jordan Ritter - 2011-09-08T22:19:51-07:00 - details

Fix bug related to migrating custom types derived from builtin types.

When dm-migrations' dm-do-adapter runs, Adapter#property_schema_hash is invoked
on each property to generate the SQL for it.

For Property::Text, type_map[Property::Text] yields a schema of TEXT with no
:length property.  When DM encounters a String primitive whose length exceeds
the schema's capacity, it auto-adjusts the schema primitive to compensate
(i.e. in MySQL, {SHORT,MEDIUM,LONG}TEXT).  Result: MEDIUMTEXT == AWESOME.

The case is different for (1) a custom Property derived from (2) a builtin
Property whose schema primitive changes based on the Property's size options.
For Property::Json, the first type_map[property.class] lookup is nil because
custom types can't/don't update Adapter#type_map -- custom properties can't know
what model/repository/adapter they're going to be on at definition time, which
they would need because the type_map is stored on the adapter *class*.

So, the second lookup type_map[property.primitive] kicks in, which for
Property::Json is type_map[String].  That in turn yields a schema of VARCHAR
with a :length property.  As with Property::Text, when DM encounters a String
primitive whose length exceeds the schema's capacity, it auto-adjusts the schema
primitive to compensate (i.e. in MySQL, {SHORT,MEDIUM,LONG}TEXT).  However, when
dm-migrations encounters any property_schema_hash with a :length option, it
automatically appends "(%i)" % length to the SQL statement.  Result:
MEDIUMTEXT(123412341234) == entire migration FKD.

dm-mysql-adapter

Piotr Solnica - 2011-09-09T11:28:03-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-observer

Piotr Solnica - 2011-09-09T11:23:58-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-oracle-adapter

Piotr Solnica - 2011-09-20T03:55:13-07:00 - details

Merge pull request #8 from tillsc/master

rake spec is green again

Till Schulte-Coerne - 2011-09-13T22:56:15-07:00 - details

Allow to overwrite the storage_name(s) with the respective environment variables ("#{name}_storage_name"). I added this because I don't want to have many oracle database instances on my small development machine.

Till Schulte-Coerne - 2011-09-13T22:34:13-07:00 - details

Fixed smaller bugs in specs preventing the test to be green

Till Schulte-Coerne - 2011-09-13T22:29:38-07:00 - details

Merge remote branch 'dm/master' into 1.2

Conflicts:
	lib/dm-oracle-adapter/adapter.rb

Till Schulte-Coerne - 2011-09-13T22:28:43-07:00 - details

Fixed the tests: Changing Parameter::OPTIONS seems not to be the right way to allow the :sequence option

Emmanuel Gomez - 2011-09-13T13:47:31-07:00 - details

Merge pull request #7 from dsisnero/patch-2

Change obj.blank? to DataMapper::Ext.blank?(obj) so as not to monkey-patch Object.

dsisnero - 2011-09-13T13:40:22-07:00 - details

Change obj.blank? to DataMapper::Ext.blank?(obj) so not to monkeypatch object

Till Schulte-Coerne - 2011-09-13T02:21:07-07:00 - details

Merge remote branch 'origin/master' into 1.2

Till Schulte-Coerne - 2011-09-13T02:21:00-07:00 - details

Making the adapter run with ruby 1.8 without activesupport or stuff like that

Till Schulte-Coerne - 2011-09-13T01:50:59-07:00 - details

Merge remote branch 'dm/master' into 1.2

Till Schulte-Coerne - 2011-09-13T01:50:56-07:00 - details

Added missing ruby-oci8 dependency to Gemfile

Till Schulte-Coerne - 2011-09-13T01:48:26-07:00 - details

Ignoring netbeans files

Piotr Solnica - 2011-09-09T11:35:39-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-postgres-adapter

Piotr Solnica - 2011-09-09T11:28:23-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-rails

Piotr Solnica - 2011-09-12T04:26:33-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-09T11:24:20-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-rest-adapter

Piotr Solnica - 2011-09-09T09:49:38-07:00 - details

Regenerated gemspec

dm-serializer

Dan Kubb - 2011-09-24T00:43:29-07:00 - details

Upgraded libxml-ruby dependency to work with ruby 1.9.3

Piotr Solnica - 2011-09-12T04:28:16-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-09T11:25:07-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

Dan Kubb - 2011-09-08T19:45:41-07:00 - details

Change specs to pending if using 1.9.2

* Psych is broken for some use cases, so there is no way to run these specs
  properly yet.

Dan Kubb - 2011-09-08T19:41:02-07:00 - details

Simplified value mapping. Removed hack for older version of pysch

Dan Kubb - 2011-09-08T19:29:31-07:00 - details

Test to make sure the proper methods exist before calling them

Dan Kubb - 2011-09-08T19:21:01-07:00 - details

Pass the node name in as a string

dm-sqlite-adapter

Piotr Solnica - 2011-09-09T11:31:08-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-sqlserver-adapter

Piotr Solnica - 2011-09-09T11:34:30-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-sweatshop

Piotr Solnica - 2011-09-09T11:25:34-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-tags

Piotr Solnica - 2011-09-09T11:25:57-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-timestamps

Piotr Solnica - 2011-09-09T11:26:18-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-transactions

Piotr Solnica - 2011-09-09T11:26:38-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-types

Piotr Solnica - 2011-09-14T00:18:44-07:00 - details

Version bump to 1.2.0.rc2

Piotr Solnica - 2011-09-12T02:53:51-07:00 - details

Upgrade to improved property api

Piotr Solnica - 2011-09-09T11:27:00-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-validations

Piotr Solnica - 2011-09-12T04:29:44-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-12T02:11:47-07:00 - details

Upgrade to the improved property api

Piotr Solnica - 2011-09-09T11:27:23-07:00 - details

Regenerate gemspec for version 1.2.0.rc1

dm-yaml-adapter

Piotr Solnica - 2011-09-09T11:27:43-07:00 - details

Regenerate gemspec for version 1.2.0.rc1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment